need some help with the menuStrip!!

I need help with a few things I am a begginner so sorry in advance if this is dumb question

using the menuStrip i have made menu with like so:

File

Screen 1

Screen 2

Screen 3

Screen 4

Exit

for each "screen" i will use a different form

my first question:

I want to know how to select a different form so when say i select screen 2 my screen 2 form will appear (from another form which i created)

my second question

on the last part of my menu strip i have "exit" i want to know the code i have to write for it to exit the application .Also for it to include a confirmation request using a MessageBox with an appropriate action taken depending on the users response.

[780 byte] By [Rhetoric] at [2007-12-28]
# 1

Hi,

If EXIT is menu item 5 then you need this.>>

Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem5.Click

Dim response As Integer

response = MsgBox("Are you sure you wish to quit?", MsgBoxStyle.YesNo)

If response = vbYes Then

End

End If

End Sub

Regards,

S_DS

Spidermans_DarkSide at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic IDE...