Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all,

 

Am attempting to write a simple windows booking application, that allows me to add and modify, rooms, clients, staff, and bookings. I have a log in form that the user must use to gain access to the program, they are then moved to mainForm, which has a menu with a number of options that redirect you to the correct form. I want to disable the menu item that was selected prior to a form being displayed, and then want to reenable it when the particular form is closed. However I am unsure/unable to call a method in the mainForm that would do the enabling. Any suggestions.

 

Mike55

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

  • Leaders
Posted

In your main form you can store a reference to the opened form and handle its closed event and in the handler re-enable the menu item.

 

Also, just a recommendation: Instead of disabling the menu items, when the user clicks a menu item that should open a form that is already open, why not just focus that form. That is what I usually do.

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...