1 Attachment(s)
Enabling / Disabling Menus
In my C# Windows application I have some menus attached like this
As you can see I have 4 menus disabled by default. Now what I want is enable / disable them on run time. So when the user selects login from User Section it should enable those menus after successful login and similarly disabled on logout. So what is the procedure to enable / disable some section of menus at run time?
Thanks in Advance
1 Attachment(s)
Re: Enabling / Disabling Menus
Is this something like this you want ?
Re: Enabling / Disabling Menus
Instead of handling the Click event, consider handling the MenuActivate event.
The reason is the Click event only works for the mouse (and what if the user is using a keyboard to invoke the menu?). The MenuActivate event works for both keyboard and mouse.
Re: Enabling / Disabling Menus
Quote:
Originally Posted by
maverick786us
In my C# Windows application I have some menus attached like this
As you can see I have 4 menus disabled by default. Now what I want is enable / disable them on run time. So when the user selects login from User Section it should enable those menus after successful login and similarly disabled on logout. So what is the procedure to enable / disable some section of menus at run time?
Thanks in Advance
I would hide menue points that are not used in a given form. When some changes occur and the other menueheaders are needed, then I would make them visible. Different buttons in a menue I would disable. This creates a menue which seems to change depending on the users needs and gives it a professional touch:wave: