Click to See Complete Forum and Search --> : Tabpage Event problem


Ajay Parmar
October 12th, 2005, 11:47 PM
I have some tabpages with panel control on my form. I am using tabcontrol1.selectedindex = no statement for activating tabpage programmable. I want that when tabpage activate programmable or by clicking its tab button, I want to add some Label and TextBox control to panel which is on tabpage. And I want that when my tabpage deactivate I want that all controls from that panel remove. For this I tried TabPage1_Enter event but it not works. At present I code in TAbPage1_VisibaleChange event. It is working but not proper.

Can anyone tell me that how I can add controls to panel and activate and show that tabpage and remove all controls when tabpage get deactivate?

Ajay

Ajay Parmar
October 17th, 2005, 09:01 AM
:cry: everyone please look in question and reply me if u find any solution for enter event. :o