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. Mdi Form

Mdi Form

Scheduled Pinned Locked Moved Visual Basic
helpquestion
3 Posts 2 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.
  • X Offline
    X Offline
    XGaMeS
    wrote on last edited by
    #1

    I would like to know if they're an easy way to get the name of the mdichildren in an mdiparent. Because i want to display their name in a label. Can someone help me ? I am NOT a newbie

    D 1 Reply Last reply
    0
    • X XGaMeS

      I would like to know if they're an easy way to get the name of the mdichildren in an mdiparent. Because i want to display their name in a label. Can someone help me ? I am NOT a newbie

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      XGaMeS wrote: I am NOT a newbie You risk alot putting this on the table! ;P You can enumerate through the MDIChildren collection in your parent form:

      Dim strName As String
      Dim frmChild As Form
      Dim x As Integer

      For x = 0 To Me.MdiChildren.Length - 1
      frmChild = CType(Me.MdiChildren(x), Form)
      strName = frmChild.Name
      Next

      RageInTheMachine9532

      X 1 Reply Last reply
      0
      • D Dave Kreskowiak

        XGaMeS wrote: I am NOT a newbie You risk alot putting this on the table! ;P You can enumerate through the MDIChildren collection in your parent form:

        Dim strName As String
        Dim frmChild As Form
        Dim x As Integer

        For x = 0 To Me.MdiChildren.Length - 1
        frmChild = CType(Me.MdiChildren(x), Form)
        strName = frmChild.Name
        Next

        RageInTheMachine9532

        X Offline
        X Offline
        XGaMeS
        wrote on last edited by
        #3

        Greet! thanks you :-O And I found another way to do exactly what I was looking for. If Not IsNothing(ActiveMdiChild) Then Select Case ActiveMdiChild.Name Case "name" lblnameform.Text = "[text]" End Select I am a newbie

        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