Disabling buttons from Tab Controls

antifashionpimp

Registered User.
Local time
Today, 22:58
Joined
Jun 24, 2004
Messages
137
Hi there everyone,

I got the following Switchboard example somewhere else, and I do understand the code, up to the point where I want to make a change but can't :mad:

The Navi buttons on the right can be chosen by the user to display the different tabbed pages. However, I want sometimes that some of these buttons are disabled at runtime.

I cannot get the right syntax for doing this. I've tried Me.btnPage1.Enabled = False but that just does NOTHING!

Could someone please have a look at the attached DB (frmSwitchboard and the code behind it) and tell me where I am missing something? That would be great, thanks!

Regards,
J
 

Attachments

Can't you just use the Visible property instead?
 
Try the two new buttons about and page2, in the attached.

Best rgds

Steff
 

Attachments

Users who are viewing this thread

Back
Top Bottom