Stating form from another form

Ian96
01-20-2004, 04:56 PM
ie

If FRMMENU.lstuser.Items.Contains(txtusername.Text)

What would replace this in VB.NET

Optikal
01-20-2004, 05:03 PM
something like this:

Dim MyForm As New frmMenu

MyForm.Show
If MyForm.lstUser.Items.Contains(txtUserName.Text) Then ...

SpiN9823
01-20-2004, 05:58 PM
if you want that form to close and then open a new form then do this:

Private Sub _Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles .Click
Dim frm As New Form
frm.Show()
Me.Visible = False
End Sub
End Class

SpiN9823
01-20-2004, 07:10 PM
optikal that dont work... its this


Private Sub _Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles .Click
Dim frm As New Form
frm.Show()
End Sub

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum