-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmMsg.vb
38 lines (32 loc) · 1021 Bytes
/
frmMsg.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
37
38
Public Class frmMsg
Private _strMessage As String
Property strMessge() As String
Get
Return _strMessage
End Get
Set(ByVal Value As String)
_strMessage = Value
End Set
End Property
Public Sub New(ByVal Value As String)
_strMessage = Value
InitializeComponent()
End Sub
Private Sub frmMsg_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.Left = 300
Me.Top = 400
showit()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
Sub showit()
Dim myFont As New Font("Arial", 14, FontStyle.Regular, GraphicsUnit.Point)
Dim myColor As Color = Color.Blue
txtArea.SelectionFont = myFont
txtArea.SelectionColor = myColor
txtArea.SelectedText = _strMessage
txtArea.Top = 30
txtArea.Left = 35
End Sub
End Class