hi all,
I'm working with MDI Application and Creating Menus in it. I have come across an issue explained below.
1) we have a child window (say
Send Form) having property WindowState as Maximized.
2) another child window (say
Add Form) having property WindowState as Normal.
Now the issue is when I first open
Send Form it appears maximized state but next when I open
Add form both Add Form and Send Form are in MAXIMIZED state.
similarly,
when I First open
Add Form then I open
Send Form and then I get Focus (
by using objAddForm.Activate()) back to
Add Form now both Child Forms are in NORMAL state.
This is Parent form code:
Public Class Form1
Private Sub ExitToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ExitToolStripMenuItem.Click
Me.Close()
End Sub
Dim frmFile As Add
Private Sub AddToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AddToolStripMenuItem.Click
If frmFile Is Nothing Then
frmFile = New Add()
frmFile.MdiParent = Me
frmFile.Show()
Else
frmFile.MdiParent = Me
frmFile.Activate()
End If
End Sub
Dim frmSend As Send
Private Sub SendToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles SendToolStripMenuItem.Click
If frmSend Is Nothing Then
frmSend = New Send()
frmSend.MdiParent = Me
frmSend.Show()
Else
frmSend.MdiParent = Me
frmSend.Activate()
End If
End Sub
Dim frmSettings As Settings
Private Sub SettingsToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles SettingsToolStripMenuItem.Click
frmSettings = New Settings()
frmSettings.MdiParent = Me
frmSettings.Show()
End Sub
End Class
This is Add Form Code
Public Class Add
End Class
This is Send Form Code
Public Class Send
End Class
I have just started the application just to know how MDI is implemented so you can't find much code in it.
Pls help me.
Please suggest me a solution for it.
Sorry, if any one feels my English is bad.
Thanks in Advance,
Rohith.