473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

MDIParent - Menu enable & disable

DNK
I have an MDIParent and a menu item "Show Status".
By clicking on it, 'Show Status' Child Window has to be opened & Menu has to
be disabled.

by closing the Child menu has to be enabled.

How to achieve this.

Thanks
dnk.
Nov 20 '05 #1
2 2359
CT
You can put the code for disabling the menu item in the Form_Load event and
the code to enable the menu item in the Form_Closing event.

Me.Parent.menuShowStatus.Enabled = False, and
Me.Parent.menuShowStatus.Enabled = True respectively.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"DNK" <DNK@MSN> wrote in message
news:e2**************@TK2MSFTNGP11.phx.gbl...
I have an MDIParent and a menu item "Show Status".
By clicking on it, 'Show Status' Child Window has to be opened & Menu has to be disabled.

by closing the Child menu has to be enabled.

How to achieve this.

Thanks
dnk.

Nov 20 '05 #2
"DNK" <DNK@MSN> schrieb
I have an MDIParent and a menu item "Show Status".
By clicking on it, 'Show Status' Child Window has to be opened & Menu
has to be disabled.

by closing the Child menu has to be enabled.

How to achieve this.

Exactly same problem:

http://groups.google.com/groups?thre...ing.google.com
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Terrance | last post by:
Good Day, I have a programming problem and need some help/advice. I have a MdiParent Form that has a tool bar with icons on it. I have a child form that needs set the toolbar enabled property to...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
18
by: Andromeda | last post by:
I've been trying to add a tree menu to my website with some luck (more or less). I came across a script on simplythebest.net, but I seem to be having a problem with it... and since they have no...
2
by: Leon | last post by:
Hi! I need to change form's standard context menu code. Eg. I want to order records by my own code. Can I make it, or must I create other context menu and link it to my form?? I'd like to...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
5
by: Dean L. Howen | last post by:
Dear friends, Could we determine when context menu should appear?
6
by: Agnes | last post by:
In my menu, there is invoice,customer .... etc As the user click 'Invoice' , the invoice form is load, then I want to disable the "Invoice" menu in the Menuitem, ,so the user can only new one...
1
by: mabond | last post by:
Hi I've noticed a couple of postings on this topic. I'm either not uderstanding them or I'm missing something. My app uses an MDIParent form (frmCAD). A menu item on frmCAD shows a child form...
1
by: joerozario | last post by:
Dear Friends, In my System is Disabled USB Drive through BIOS and BIOS has Password Set. now i want to enable and Disable My USB Drive without going to BIOS settings. is it Possible to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.