How to access menu in parent form in MDI app?

  • Thread starter Thread starter Uncle_Albert
  • Start date Start date
U

Uncle_Albert

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! :)
 
* (e-mail address removed)-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
///
 
Mate, you are infact a genius...I very much owe you! :D 8)

What's all this DirectCast about though? :?:
 
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! :?
 
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:
 
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 said:
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
=---
 
Back
Top