Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Control MenuItem on MDI application

Control MenuItem on MDI application

Scheduled Pinned Locked Moved Visual Basic
help
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    minhnguyen08
    wrote on last edited by
    #1

    I'm a senior student. I'm making graduation report so I need your help! I have MDI application with MainMenu on FormMain. When runtime i opened a childform,i do something on it and i want to control(enable/disable) some of MenuItem on MainMenu. This is my code: //////Module///// Module class...... public sub ControlMenu(Byval mnu as system.windows.forms.form.MenuItem,Byval bool as boolean) mnu.enable=bool end sub ........ End class ////////FormMain//// Class FormMain ..declare some var ... private child as ChildForm ..... //event MenuItem childform.click() private sub childform_click(byval sender as object, byval e as ...)Handle childform.click child =new childform child.MdiParent=Me child.show() end sub .... End Class /////ChildForm////// Class ChildForm ..do something //set a MenuItem Me.parent.ControlMenu(NameOfmnuItem,fasle) //Close child form Me.close (or Me.hide) End Class But I get an error or ControlMenu not declare this show up whenever i move mouse on Me.parent.ControlMenu(NameOfmnuItem,fasle). Everybody help me Plz. Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups