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. how to access mdi child

how to access mdi child

Scheduled Pinned Locked Moved Visual Basic
data-structurestutorial
5 Posts 3 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.
  • S Offline
    S Offline
    Sai Yasodharan
    wrote on last edited by
    #1

    i have a number of child forms within a parent mdi now i want access current child form from the mdi form. i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event

    N R 2 Replies Last reply
    0
    • S Sai Yasodharan

      i have a number of child forms within a parent mdi now i want access current child form from the mdi form. i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event

      N Offline
      N Offline
      Naji El Kotob
      wrote on last edited by
      #2

      Hi, Dim CurrentChild As Form = Me.ActiveMDIChild hope this helps :)

      NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice...

      S 1 Reply Last reply
      0
      • S Sai Yasodharan

        i have a number of child forms within a parent mdi now i want access current child form from the mdi form. i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event

        R Offline
        R Offline
        rohitsrivastava
        wrote on last edited by
        #3

        if u take mdi form then for child control u can take a contextmenustrip in tooltip. then the form .then u write the name. and double click and write dim frm as new formname frm.showdialog this is the only coding

        S 1 Reply Last reply
        0
        • N Naji El Kotob

          Hi, Dim CurrentChild As Form = Me.ActiveMDIChild hope this helps :)

          NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice...

          S Offline
          S Offline
          Sai Yasodharan
          wrote on last edited by
          #4

          Hi, thanks for ur help but i have one more problem i have 2 forms, frmtools and frmpad i have created 10 instances of frmpad and loaded them on mdi's load event now i want to do the required operations only if the CurrentChild is any of the instances of frmpad. if the CurrentChild is frmtools then nothing should happen for that i have set the tag property of frmpad to "yes" and the tag property of frmtools to "no" and written the following: if Me.ActiveMDIChild.tag = "yes" then dim a as frmpad = me.ActiveMDIChild it works also. but, i don't know the use of tag property. will there be any problems due to the change of tag property or there any other way to achieve this.

          1 Reply Last reply
          0
          • R rohitsrivastava

            if u take mdi form then for child control u can take a contextmenustrip in tooltip. then the form .then u write the name. and double click and write dim frm as new formname frm.showdialog this is the only coding

            S Offline
            S Offline
            Sai Yasodharan
            wrote on last edited by
            #5

            i can't understand u. will u be more descriptive and one important thing is i am new to vb.net

            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