-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCEditor.vb
136 lines (111 loc) · 4.67 KB
/
CEditor.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
Public Class CEditor
Dim data As Integer = 0
Private Sub BackToHome_Click(sender As Object, e As EventArgs) Handles BackToHome.Click
Me.Close()
Home.Show()
End Sub
Private Sub minimize_Click(sender As Object, e As EventArgs) Handles minimize.Click
Me.WindowState = FormWindowState.Minimized
End Sub
Private Sub Minimize_MouseEnter(sender As Object, e As EventArgs) Handles minimize.MouseHover
Style.Link_MouseHover(sender)
End Sub
Private Sub Minimize_MouseLeave(sender As Object, e As EventArgs) Handles minimize.MouseLeave
Style.Link(sender)
End Sub
Private Sub BackToHome_MouseHover(sender As Object, e As EventArgs) Handles BackToHome.MouseHover
Style.Link_MouseHover(sender)
End Sub
Private Sub BackToHome_MouseLeave(sender As Object, e As EventArgs) Handles BackToHome.MouseLeave
Style.Link(sender)
End Sub
Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox1.Focus()
End Sub
Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox2.Focus()
End Sub
Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox3.Focus()
End Sub
Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox4.Focus()
End Sub
Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox5.Focus()
End Sub
Private Sub PictureBox6_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox6.Focus()
End Sub
Private Sub PictureBox7_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox7.Focus()
End Sub
Private Sub PictureBox8_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox8.Focus()
End Sub
Private Sub PictureBox9_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
TextBox9.Focus()
End Sub
Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
If (e.KeyCode = Keys.Enter) Then
SendKeys.Send("{TAB}")
End If
End Sub
Private Sub PictureBox2_Click_1(sender As Object, e As EventArgs) Handles PictureBox2.Click
data = 1
MonthCalendar1.Visible = True
MonthCalendar1.Location = New Point(898, 110)
End Sub
Private Sub PictureBox4_Click_1(sender As Object, e As EventArgs) Handles PictureBox4.Click
data = 2
MonthCalendar1.Visible = True
MonthCalendar1.Location = New Point(898, 200)
End Sub
Private Sub PictureBox6_Click_1(sender As Object, e As EventArgs) Handles PictureBox6.Click
data = 3
MonthCalendar1.Visible = True
MonthCalendar1.Location = New Point(898, 295)
End Sub
Private Sub CCreator_Click(sender As Object, e As EventArgs) Handles MyBase.Click
MonthCalendar1.Visible = False
End Sub
Private Sub MonthCalendar1_DateSelected(sender As Object, e As DateRangeEventArgs) Handles MonthCalendar1.DateSelected
If (data = 1) Then
TextBox2.Text = MonthCalendar1.SelectionRange.Start.ToShortDateString()
ElseIf (data = 2) Then
TextBox4.Text = MonthCalendar1.SelectionRange.Start.ToShortDateString()
ElseIf (data = 3) Then
TextBox6.Text = MonthCalendar1.SelectionRange.Start.ToShortDateString()
End If
End Sub
Private Sub Calendario1_Click(sender As Object, e As EventArgs) Handles calendario1.Click
If (MonthCalendar1.Visible = True) Then
MonthCalendar1.Visible = False
Else
data = 1
MonthCalendar1.Visible = True
MonthCalendar1.Location = New Point(898, 110)
End If
End Sub
Private Sub Calendario2_Click(sender As Object, e As EventArgs) Handles calendario2.Click
If (MonthCalendar1.Visible = True) Then
MonthCalendar1.Visible = False
Else
data = 2
MonthCalendar1.Visible = True
MonthCalendar1.Location = New Point(898, 200)
End If
End Sub
Private Sub Calendario3_Click(sender As Object, e As EventArgs) Handles calendario3.Click
If (MonthCalendar1.Visible = True) Then
MonthCalendar1.Visible = False
Else
data = 3
MonthCalendar1.Visible = True
MonthCalendar1.Location = New Point(898, 295)
End If
End Sub
Private Sub PictureBox10_Click(sender As Object, e As EventArgs) Handles PictureBox10.Click
TextBox10.Focus()
End Sub
End Class