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 i can adjust the client area of the MDI form

How i can adjust the client area of the MDI form

Scheduled Pinned Locked Moved Visual Basic
data-structureshelp
2 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.
  • A Offline
    A Offline
    avinashpatil3484
    wrote on last edited by
    #1

    Hello Friends Actually i want to set the client area of MDI form for its child windows, because whenevr i maximize the child window it starts from (0,0) co-ordinates of MDI form. but bec i have tree viwver in my mDI form i have to change it so that i can see my child window and tree view too. plz help me out Avinash patil

    D 1 Reply Last reply
    0
    • A avinashpatil3484

      Hello Friends Actually i want to set the client area of MDI form for its child windows, because whenevr i maximize the child window it starts from (0,0) co-ordinates of MDI form. but bec i have tree viwver in my mDI form i have to change it so that i can see my child window and tree view too. plz help me out Avinash patil

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

      You'll have to enumerate the Control collection of the MdiParent form. Look for a control of Type "MdiClient". When you find it, you can call it's SetBounds method or set it's Location to appropriate values.

      For Each c As Control In MyMdiParent.Controls
          If TypeOf c Is MdiClient Then
              Dim client As MdiClient = DirectCast(c, MdiClient)
              client.Location = New Point(...)
              Exit For
          End If
      Next
      

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      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