Hi Every body
I am biginner in VB.NET 2003!!
I have a project from my college to design.
I have a form with menues controle, I want to connect other form to each menu items, when ever I click on one of them other form will appear, in order to save, Edit or any thing else.
And also tell me where I have to put other form I have, in order to be accessed when I click the menue item, in the same folder where menue folerm is located
Example when you click on Help menu in MS word it display other option once you click one of the item it bring you a new windows (form).
Thanks in advance for your help.

Connecting Forms
robinjam
Thanks for your reply
As I said I am begginer in VB.NET.
1.How can I impliment the MDI.
2. When parent and child both of them are open, when I click on parent form the child form go behind the parent form.
how can i set the child form to remain on top although I click on parent to open another form from the menu.
thank you very much
Chris McLeod
You simply need to create a single project and then simply add the forms to the same project instead of a separate project for each form, unless each form is a self contained application (exe) which you are trying to call.
If this is the case then you can use system.Diagnostics.Process.Start (<filename>) to start the executables. Although for what youve described it sounds like you should be creating a single project containing multiple forms rather than multiple projects.
jheddings
Add a control to the main form for the menu's (in 2005 this is a menustrip, but I seem to recall a similar control in 2003).
Use the Designer to add the menu items that you want to appear
In the designer - double click the menu item which will bring you into the code window / event for this click
Add the code to create a instance of a new form you wish to display
The code will look something like
Public Class Form1
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
Me.Close()
End Sub
Private Sub Form1ToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form1ToolStripMenuItem1.Click
Dim x As New Form3
x.Show()
End Sub
Private Sub Form2ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form2ToolStripMenuItem.Click
Dim x As New form2
x.show()
End Sub
End Class
The code highlighted is the code to create and display new instance of forms.
When you run this and click on the menu items on the main form new instances of the child forms (form2 and form3) will appear.
If you wish to have the form displayed modally then use showdialog.
If you want to use standard system dialogs such as file save, file open and folder browser there are specific controls which you can use to get this functionality and avoid having to code this yourself.
Hope this points you in the general direction.
Sam_2
You can specifically set the form sizes or you can implement an MDI solution which will mean the child forms are contained within the parent form.
Steve1999
Mauricio Castillo E
Thank you very much for your help
I understood and added more forms in the Same project.
Now I have linked the menu item to a form, when I click on the menu item it open the form biger than the size of parents form.
How can I set the parents form and avoid this.
thanks
yosonu
In MDI - the child forms are contained within the main form.
Examples of creating MDI applications
http://www.startvbdotnet.com/forms/mdi.aspx
http://vb-helper.com/howto_net_mdi.html
http://www.exforsys.com/tutorials/vb.net-2005/vb.net-2005-tutorials-creating-multiple-document-interface-(mdi)-applications.html
Have a look at these and see if these are what you looking to achieve.
Maxim Masiutin
Thank you very much for your help
One thing I have designed each form sepreatly as new project file where I can put these files to be accessed by menu item when I click.
Is there way to creat child form in same project file. ( please help me how to do it)
Thanks very much