I can't code this thing, i want to.
When Tabpage2 is selected, tabpage1 should be disabled, and the form should change to the size that i want it to be.
Can someone help me with this? :-)
Thanks.
Printable View
I can't code this thing, i want to.
When Tabpage2 is selected, tabpage1 should be disabled, and the form should change to the size that i want it to be.
Can someone help me with this? :-)
Thanks.
I'm not sure if you can disable a tabpage (as in, making it impossible to be selected), but you can do the rest by handling the SelectedTabChanged or SelectedPageChanged or something like that, you'll find it.
In that event, just check if the selected tab is TabPage2, and if it is set the forms Size property.
Nick is correct, TabPages have no Enabled property.