G
Guest
----- yxq wrote: ----
This statement is pretty vague. Can you elaborate?
This statement is pretty vague. Can you elaborate?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* "yxq said:Hello
There is two buttons(button1 and button2) in left of a parent
Form(frmParent), i want to show two MDI Form(subForm1 and subForm2) on
right, when click button1, subForm1 shown, click button2, subForm2 shown. I
wirtten some code, but when maximize frmParent, subForm can not be shown
right. Please help me.
**********************************************************
'frmMain
Private oSubForm1 As Form
Private oSubForm2 As Form
Private Sub frmParent_Load(...)
Me.IsMdiContainer = True
oSubForm1 = New subForm1
oSubForm1.MdiParent = Me
oSubForm1.Show()
End sub
Private sub button1_Click(...)
oSubForm1.Activate()
End sub
Private sub button2_Click(...)
If oSubForm2 Is Nothing Then
oSubForm2 = New subForm2()
oSubForm2.MdiParent = Me
oSubForm2.Show()
Else
subForm2.Activate()
End If
End sub
'subForm1
Private subForm1_Load(...)
Me.ControlBox = False
Me.WindowState = FormWindowState.Maximized
Me.StartPosition = FormStartPosition.Manual
End Sub
'subForm
Private subForm2_Load(...)
Me.ControlBox = False
Me.WindowState = FormWindowState.Maximized
Me.StartPosition = FormStartPosition.Manual
End Sub
* "yxq said:Could you please help me to test the code in accessories?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.