473,403 Members | 2,183 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,403 software developers and data experts.

How to access menu in parent form in MDI app?

Hi there,

Trying to get to grips with MDI applications at the mo and having a
bit of trouble with the basics.

What I have at the mo is the parent form loading and immediately
displaying a child form, which is to be used to log in to the system
(username and password entry). When the user clicks connect on the
child form, I want the menu's on the parent to become enabled.

How can I enable the menus from within the child form code?

I've looked at loads of examples, but all they seem to talk about is
merging menu's - not what I'm after!

Any help would be greatly appreciated! :)

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #1
6 1521
* jd*@dsl.pipex-dot-com.no-spam.invalid (Uncle_Albert) scripsit:
Trying to get to grips with MDI applications at the mo and having a
bit of trouble with the basics.

What I have at the mo is the parent form loading and immediately
displaying a child form, which is to be used to log in to the system
(username and password entry). When the user clicks connect on the
child form, I want the menu's on the parent to become enabled.

How can I enable the menus from within the child form code?


\\\
DirectCast(Me.MdiParent, MainForm).MenuItem1.Enabled = True
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Mate, you are infact a genius...I very much owe you! :D 8)

What's all this DirectCast about though? :?:

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #3
With MDI apps, what's the situation with regards to several different
types of child form in one app??

I ask because this MDI app I'm coding at the mo will need to have
several different types of child form, and I've read in a book that
such a thing is extremely unusual.

I'm trying to display a second child on the parent and the code for
this isn't being executed at all! :?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #4
let me think about it...
will get back to you

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #5
It's just silly now...anything I change in the code has absolutely no
effect.

For example, even if I change the startup object to a totally
different form, it remains unchanged! So frustrated! :evil:

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #6
How about some code samples of what you are doing to access the child
form(s) and what you are doing/trying to pass information between them ?
Otherwise, any advice is just a guess.
james

"Uncle_Albert" <jd*@dsl.pipex-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
With MDI apps, what's the situation with regards to several different
types of child form in one app??

I ask because this MDI app I'm coding at the mo will need to have
several different types of child form, and I've read in a book that
such a thing is extremely unusual.

I'm trying to display a second child on the parent and the code for
this isn't being executed at all! :?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #7

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

Similar topics

4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
1
by: Jan Sokol | last post by:
When you open MDI Child form inside of MDI Parent form, menu of the MDI Child form is added to the menu of MDI Parent. Is there a way to keep menu of MDI Child form on this form, not to move it on...
3
by: PK | last post by:
Hi, I've a MDI form and a child form that comes from a dll. Everything works fine until I had to uncheck or check a menu item in the MDI form based on the changes in the child form. How to acheive...
2
by: Jim H | last post by:
I would like to have some MenuItems that are specific to my child form appear in the main menu. In the MSDN documentation: Menu merging is typically done to merge the menus of a Multiple...
1
by: Jeff Brown aka BrntPhish | last post by:
Can someone explain what the properties for merging menus are and how they work. I have a MDI Parent form with file, edit ...etc etc I also have a MDI Child Form with file edit & a menu that...
4
by: jon morgan | last post by:
Hello, In an MDI application how can I prevent the CLR automatically merging a child windows' menu with that of the parent MDI form ? Thanks for any help Jon
0
by: Amiram Korach | last post by:
When you create a MDI form, you can attach a main menu to the parent and to the child. When a child form is active, its menu is merged with the parent menu. The problem is: when the forms are...
2
by: MCM | last post by:
I'm working on a plotting control. The plotting control will have a context menu with basic commands for "scaling", "zooming", etc. Is there a way that, from the parent form, I can add more...
7
by: Darin | last post by:
I have a parent form that has a menu. I then have a child form on the menu. From the child form I need to change the parent form's menu - how can i do that? I tried me.parent.mfavorites, but that...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.