Hi all.
I'm having a problem with MDI forms.
I declare my forms at module level (so I can access them from anywhere in the app), and display one as soon as the app starts up (in the form_load sub) so that it appears on the left of the MDIParent (it is used as an "outlook" style icon menu). That works fine.
the problem starts when I open another form to be displayed to the right in the empty space to the rigth of the icon menu. It sort of "flickers" before it finally redraws. The flickering is simply the form being drawn with the title bar etc before it then removes this (as its not supposed to have them) and then repositions - any ideas how to stop this? I did the exact same thing in VB6 without any problems.
The code I'm using to open the form is:
frmAppholder is the MDIParent, frmLeftMenu is the left hand icon bar (docked to the left of the MDIParent), and frmAssets is the form i'm trying to display in the "empty space" to the right of frmLeftMenu.
(hope all that makes sense!)
Any help much appreciated.
Jeff.
I'm having a problem with MDI forms.
I declare my forms at module level (so I can access them from anywhere in the app), and display one as soon as the app starts up (in the form_load sub) so that it appears on the left of the MDIParent (it is used as an "outlook" style icon menu). That works fine.
the problem starts when I open another form to be displayed to the right in the empty space to the rigth of the icon menu. It sort of "flickers" before it finally redraws. The flickering is simply the form being drawn with the title bar etc before it then removes this (as its not supposed to have them) and then repositions - any ideas how to stop this? I did the exact same thing in VB6 without any problems.
The code I'm using to open the form is:
Code:
frmAssets.MdiParent = frmAppHolder
frmAssets.Location = New Point(frmleftmenu.left + frmleftmenu.width, 0)
frmAssets.Size = New Size(50, 50)
frmAssets.Show()
frmAppholder is the MDIParent, frmLeftMenu is the left hand icon bar (docked to the left of the MDIParent), and frmAssets is the form i'm trying to display in the "empty space" to the right of frmLeftMenu.
(hope all that makes sense!)
Any help much appreciated.
Jeff.