Showing several windows form.

Hi,

I have a mdiform and several windows form.

1. Form called Bar Menu.
2. Form called Bar Order.
3. Form called KeyPad.

At Bar Menu, when I press "Bar Order" button then it show the Bar Order Form side by side.
After that when I click item at Bar Menu then It shows Key Pad Form, after the user click number than the form is closed leaving Bar Menu and Bar Order Forms.

How could I do that so they still show when needed?

Thank you.



LVL 1
emi_sastraAsked:
Who is Participating?
 
RiteshSompuraCommented:
I think you are not making those 3 forms as MDIChild forms. Multiple child forms can be shown side by side.

Code in code snippet will show Menu and Order forms side by side.
Also, when you will click on Order Form, the Menu form will remain visible.

* To create BarMenu form, 
  Dim barMnu as frmBarMenu = new frmBarMenu
  barMnu.MDIParent = Me 'Here, Me represents MDI Parent form's object. 
  barMnu.Show()
  barMnu.SetBounds(0, 0, 250, 250)
  
* On BarMenu, in BarOrder button's click event,
  Dim barOrd as frmBarOrder = new frmBarOrder
  barOrd.MDIParent = Me.MDIParent
  barOrd.Show()
  barOrd.SetBounds(Me.Width, 0, 250,250)

Open in new window

0
 
Göran AnderssonCommented:
I don't understand the question. Are you describing how it works now, or what you would like to build?

In any case, what is the problem?
0
 
emi_sastraAuthor Commented:
Hi,

Yes, I described how it should works.
The problem are :

1. The Bar Order Form does not show side by side with the Bar Menu Form.
2. After the  Bar Order Form show and I click the Bar Menu Form, then the Bar Order Form is disappeared, that I don't wan to.

Thank you.


0
 
emi_sastraAuthor Commented:
Hi,

I forgot to set form.MDIParent =me.MDIParent.
Usually I just do it on mdiform menu Click.

Thank you very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.