-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathForm6show.frm
More file actions
291 lines (270 loc) · 8.25 KB
/
Form6show.frm
File metadata and controls
291 lines (270 loc) · 8.25 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form6
Caption = "Form6"
ClientHeight = 3015
ClientLeft = 225
ClientTop = 870
ClientWidth = 4560
LinkTopic = "Form6"
ScaleHeight = 10635
ScaleWidth = 20250
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
BackColor = &H000080FF&
Caption = "Reset"
BeginProperty Font
Name = "Verdana"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 5880
Style = 1 'Graphical
TabIndex = 4
Top = 6240
Width = 1575
End
Begin VB.CommandButton Command1
BackColor = &H000080FF&
Caption = "Delete Record"
BeginProperty Font
Name = "Verdana"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 3000
Style = 1 'Graphical
TabIndex = 3
Top = 6240
Width = 2055
End
Begin VB.TextBox Text1
Height = 615
Left = 4560
TabIndex = 2
Top = 5040
Width = 5535
End
Begin MSComctlLib.ListView ListView1
Height = 4455
Left = 0
TabIndex = 0
Top = 0
Width = 18015
_ExtentX = 31776
_ExtentY = 7858
View = 3
LabelWrap = -1 'True
HideSelection = -1 'True
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 14
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Rank"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Session"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Name"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Dob"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Guardian's Name"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "Guardian Ocuupation"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "Contact No."
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "Guardian No."
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "Address"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 9
Text = "Stream"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(11) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 10
Text = "Discipline"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(12) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 11
Text = "Sex"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(13) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 12
Text = "Blood Group"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(14) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 13
Object.Width = 2540
EndProperty
End
Begin VB.Label Label1
Height = 495
Left = 1920
TabIndex = 1
Top = 5040
Width = 1815
End
Begin VB.Menu Home
Caption = "Home"
End
Begin VB.Menu About
Caption = "About Us"
End
Begin VB.Menu Window
Caption = "Window"
Begin VB.Menu Maximize
Caption = "Maximize"
End
Begin VB.Menu Minimize
Caption = "Minimize"
End
Begin VB.Menu Restore
Caption = "Restore"
End
End
Begin VB.Menu Exit
Caption = "Exit"
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub About_Click()
Unload Me
Me.Hide
Load Form4
Form4.Show
End Sub
Private Sub Command1_Click()
Dim i, j As Integer
If Text1.Text = "" Then
MsgBox "Enter name !"
Else
For i = 1 To stdlen
If std(i).Name = Text1.Text Then
Exit For
End If
Next
If i <= stdlen Then
For j = i To stdlen - 1
std(i) = std(i + 1)
Next
stdlen = stdlen - 1
Call LoadList
ReDim Preserve std(stdlen)
Else
MsgBox "Name not found!"
End If
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub LoadList()
Dim list As ListItem
Dim i As Integer
ListView1.ListItems.Clear
For i = 1 To stdlen
Set list = ListView1.ListItems.Add(, , std(i).Rank)
list.SubItems(1) = std(i).Ses
list.SubItems(2) = std(i).Name
list.SubItems(3) = std(i).Dob
list.SubItems(4) = std(i).GName
list.SubItems(5) = std(i).GOcc
list.SubItems(6) = std(i).Contact
list.SubItems(7) = std(i).GContact
list.SubItems(8) = std(i).Address
list.SubItems(9) = std(i).Stream
list.SubItems(10) = std(i).Disc
list.SubItems(11) = std(i).Sex
list.SubItems(12) = std(i).BGroup
Next
End Sub
Private Sub Exit_Click()
Unload Me
Me.Hide
End
End Sub
Private Sub Form_Load()
Call LoadList
Me.Top = 0
Me.Left = 0
Me.Height = 12000
Me.Width = 15000
Label1.Caption = "Enter name :"
Label1.FontBold = True
Label1.FontSize = 16
Text1.FontSize = 16
End Sub
Private Sub Home_Click()
Unload Me
Me.Hide
Load Form3
Form3.Show
End Sub
Private Sub Maximize_Click()
Form6.WindowState = 2
End Sub
Private Sub Minimize_Click()
Form6.WindowState = 1
End Sub
Private Sub Restore_Click()
Form6.WindowState = 0
End Sub