Hi all,
I have an MDIChild that I am showing in maximized view which is fine; however, when I click on a button on this maximized MDIChild, it is supposed to show another MDIChild (look-up screen) which should be showing in Normal state and CenterParent, but the problem I am having is that the MDIChild lookup screen is also showing in maximized state instead of normal state. I have attempted many things (like setting dock = none) and it doesn't make a difference. Any ideas?
From the MainForm
vb Code:
Private Sub Accounting_BankReconciliation_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Accounting_BankReconciliation.Click Try Dim LoadBankReconciliation As New BankReconciliation With LoadBankReconciliation .MdiParent = Me .Dock = DockStyle.Fill .Show() End With Catch ex As Exception MessageBox.Show(ex.ToString(), _ "Exception", _ MessageBoxButtons.OK, _ MessageBoxIcon.Error, _ MessageBoxDefaultButton.Button1) End Try End Sub
From the loaded MDIChild - to load the second MDIChild look-up form.
vb Code:
Private Sub SearchBankAccount_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles SearchBankAccount.Click Try Dim LoadBankCodeLookup As New BankCodeLookup With LoadBankCodeLookup .MdiParent = Me.MdiParent .Dock = DockStyle.None .TopMost = True .WindowState = FormWindowState.Normal .StartPosition = FormStartPosition.CenterParent .Show() End With Catch ex As Exception MessageBox.Show(ex.ToString(), _ "Exception", _ MessageBoxButtons.OK, _ MessageBoxIcon.Error, _ MessageBoxDefaultButton.Button1) End Try End Sub




Reply With Quote