mdi applications

  • Thread starter Thread starter Cecilia
  • Start date Start date
C

Cecilia

How do I change (e.g. the checked property) of a menu
item of an MDI windows form, from a child window form?
 
Cecilia said:
How do I change (e.g. the checked property) of a menu
item of an MDI windows form, from a child window form?

IMO, this is not good design in most cases. When/why do you want to change
it? Maybe raising an event in the child window caught in the MDI window is
the "better" (because more abstract) solution.
 
Hello,

Cecilia said:
How do I change (e.g. the checked property) of a menu
item of an MDI windows form, from a child window form?

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

Replace 'MainForm' with the type name of your MDI container.
 
Thank you, it worked perfectly ok !

-----Original Message-----
Hello,



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

Replace 'MainForm' with the type name of your MDI container.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


.
 
Thank you, it worked perfectly ok !

-----Original Message-----
Hello,



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

Replace 'MainForm' with the type name of your MDI container.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top