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
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