form didn't show

  • Thread starter Thread starter Cc
  • Start date Start date
C

Cc

I have a mdi container , added panel(dock fill). when I tr show a form it
didn't come out(no error) , it's only show out when I show as showdialog.
how do I solve this, cause I don't want the form show as showdialog.
 
CC

I think that you should show "some" code to get help, there are millions of
ways you could have done this.

And please copy it first in a notebook and than back in the message
otherwise it is mostly unreadable.

Cor
 
Cc said:
I have a mdi container , added panel(dock fill). when I tr show
a form it didn't come out(no error)

Are you showing the form as MDI child?
 
to make eazy to understand

1. create mdi container form
|
| in the mdi container
|
2. add Panel (set dock to fill) this will make panel fill up the whole
mdi container
|
| in panel
|
3. add tabcontrol (set dock to fill) it will fillup the whole panel

from menu :
Private Sub ReplaceToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ReplaceToolStripMenuItem.Click

Dim m_oReplace As New findreplace(loc_openDocList, TabControl1)

m_oReplace.MdiParent = Me

m_oReplace.Show

(no error , but the form not showing out , I even try to set top most on the
child form but no use)
 
Cc,

What is this code
Dim m_oReplace As New findreplace(loc_openDocList, TabControl1)

It says for me something as: instance a new form what has in the constructor
a whatever and a reference to a Tabcontrol which belongs to the MdiParent.

As well it is not impossible that your panel covers your MDIClient when that
is created on the MDIparent form in the sample you showed.

However it looks strange what you are doing..

Cor
 

Ask a Question

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.

Ask a Question

Back
Top