• Post Reply Bookmark Topic Watch Topic
  • New Topic

Erasing and Refilling the data  RSS feed

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a frame. Two panels are attached to that frame. First panel consists of a question and answer fields. The second panel consists of a button. After answering the first question when the button is pressed the whole frame is getting disposing but I didn't want the whole frame to be disposed. Only the fist panel should be disposed and when the button is pressed the next question should appear. How can I acheive this?
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is difficult to guess why the whole frame is being disposed. Please post code to make your question clearer.

I think maybe on your button press you are telling te frame to close. When what you need is to remove the panel you don't want anymore and place there the one that you do.

Cheers,
Rachel
 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mr.Rachel,
Can you give me a small sample code for disposing only the required panel but not the whole frame whereas the frame consists of three panels. Thanks for your reply.

Waiting for your reply
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!