| title | Startup_Form |
|---|---|
| author | Micheal |
| date | Friday, May 22, 2015 |
| output | html_document |
Public Class frmstartup
Public Shared username As TextBox
Private Sub frmstartup_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtname.Focus()
username = txtname
End Sub
Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click
If txtname.Text = "" Then
MsgBox("Please input your Name")
txtname.Focus()
Else
frmIPChat.txtusername.Text = username.Text
Me.Close()
frmIPChat.Opacity = 100%
End If
End Sub
Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click
End
End Sub
End Class