-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmSendMessage.vb
36 lines (26 loc) · 1.09 KB
/
frmSendMessage.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Imports System.Windows.Forms
Public Class frmSendMessage
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
If txtCellNumber.Text = "" Then
MsgBox("Ener Cell Number and Send again", MsgBoxStyle.Exclamation)
txtCellNumber.Focus()
Exit Sub
End If
If txtMessage.Text = "" Then
MsgBox("Enter Message and Send again", MsgBoxStyle.Exclamation)
txtMessage.Focus()
Exit Sub
End If
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
Private Sub frmSendMessage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtCellNumber.Focus()
txtCellNumber.Text = String.Empty
txtMessage.Text = String.Empty
End Sub
End Class