Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ive never done this before so i have no idea where to start.

 

Just like in Microsoft word, access, excel etc

when the program loads there is a workspace

 

is it possibel to have a fixed or dockable form within the primary form?

Guest mutant
Posted

You cant just put a form within a form.

You have to use MDI or just have multiple forms or dock your windows.

Posted

Just Pur Form's property "IsMdiContainer" to true and it will become a mdi parent form.

 

next if you want to open any form inside that just put its MDIParent property to the instance of MDI form.

 

such as

 

dim frmA as new frmChiled

frmA.MdiParent = FrmMDI.Activeform

frma.show()

The one and only

Dr. Madz

eee-m@il

Posted

Note that there is a severe memmory-leak in this type of an aplication.. see the mdi-list topic below..

 

regards hilmar

Guest Deleted member 22320
Posted

Try this then.. Make a new instance of your secondary form, then set

Form2.TopLevel = False

 

then just add it to your main form like its a control

you can still drag it around with the title bar, or if you set formborderstyle to none, it even looks like a regular control

  • Leaders
Posted

or if you want a standard ( none mdi form ) within another standard form try the winapi with this.

Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long

setting the parent for Form2 as Form1 will put Form2 inside it:)

another alternative to try.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...