Button and tab

J

Jay

Thanks in advance

A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.

(Goal)
In the tab2, 'Delete' button is greyed out and disabled.
In the tab1, 'Delete' button is enabled.
 
J

John W. Vinson/MVP

Thanks in advance

A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.

(Goal)
In the tab2, 'Delete' button is greyed out and disabled.
In the tab1, 'Delete' button is enabled.

You need two buttons, one on each tab page.
 
K

Krzysztof Pozorek [MVP]

Yes, Tab page has only this five events, but Tab control has nine events:
Change, Click, DblClick, KeyDown, KeyPress, KeyUp, MouseDown, MouseMove,
MouseUp.

Use Change event of Tab control.

K.P.
 
Top