-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathForm2.frm
284 lines (249 loc) · 8.13 KB
/
Form2.frm
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
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 4 'Fixed ToolWindow
Caption = "User & Pass"
ClientHeight = 3630
ClientLeft = 45
ClientTop = 285
ClientWidth = 4680
LinkTopic = "Form2"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3630
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command1
Caption = "Aceptar"
Height = 495
Left = 1733
TabIndex = 10
Top = 2970
Width = 1215
End
Begin VB.Frame Frame2
Caption = "Cuenta de Poringa"
Height = 1320
Left = 120
TabIndex = 5
Top = 1500
Width = 4440
Begin VB.TextBox UsP
Appearance = 0 'Flat
Height = 375
Left = 1260
TabIndex = 7
Top = 270
Width = 2970
End
Begin VB.TextBox PasP
Appearance = 0 'Flat
BeginProperty Font
Name = "Webdings"
Size = 8.25
Charset = 2
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 1260
PasswordChar = "="
TabIndex = 6
Top = 735
Width = 2970
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "Usuario:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 150
TabIndex = 9
Top = 300
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "Contraseña:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 150
TabIndex = 8
Top = 765
Width = 1035
End
End
Begin VB.Frame Frame1
Caption = "Cuenta de Taringa"
Height = 1320
Left = 120
TabIndex = 0
Top = 75
Width = 4440
Begin VB.TextBox PasT
Appearance = 0 'Flat
BeginProperty Font
Name = "Webdings"
Size = 8.25
Charset = 2
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 1260
PasswordChar = "="
TabIndex = 4
Top = 735
Width = 2970
End
Begin VB.TextBox UsT
Appearance = 0 'Flat
Height = 375
Left = 1260
TabIndex = 2
Top = 270
Width = 2970
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Contraseña:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 150
TabIndex = 3
Top = 765
Width = 1035
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Usuario:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 150
TabIndex = 1
Top = 300
Width = 720
End
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If UsT = "" And PasT = "" And Not UsP = "" And Not PasP = "" Then
End If
If UsP = "" And PasP = "" And Not UsT = "" And Not PasT = "" Then
End If
If Not UsT = "" And PasT = "" Then
Check = 1
ElseIf UsT = "" And Not PasT = "" Then
Check = 1
End If
If Not UsP = "" And PasP = "" Then
If Check = 1 Then
Check = 2
ElseIf Chack = 0 Then
Check = 3
End If
ElseIf UsP = "" And Not PasP = "" Then
If Check = 1 Then
Check = 2
ElseIf Chack = 0 Then
Check = 3
End If
End If
If UsT = "" And PasT = "" And UsP = "" And PasP = "" Then
Check = 4
End If
Select Case Check
Case 1
MsgBox "Faltan datos de la Taringa"
Case 2
MsgBox "Faltan datos de las cunetas Taringa y Poringa"
Case 3
MsgBox "Faltan datos de la Poringa"
Case 4
MsgBox "No a escrito nada"
Unload Me
Case 0
If Not UsT = "" And Not PasT = "" Then
If Not TaringaU = "" And Not TaringaPas = "" And Not _
TaringaU = UsT And Not TaringaPas = PasT Then
Respu = MsgBox("Está seguro va a cambiar la cuenta de Taringa por esta nueva?", vbYesNo)
If Respu = 6 Then
TaringaU = UsT
TaringaPas = PasT
End If
ElseIf Not TaringaU = UsT Or Not TaringaPas = PasT And Not TaringaU = "" And Not TaringaPas = "" Then
Respu = MsgBox("Está seguro va a cambiar la cuenta de Taringa por esta nueva?", vbYesNo)
If Respu = 6 Then
TaringaU = UsT
TaringaPas = PasT
End If
End If
End If
If Not UsP = "" And Not PasP = "" Then
If Not PoringaU = "" And Not PoringaPas = "" And Not _
PoringaU = UsP And Not PoringaPas = PasP Then
Respu = MsgBox("Está seguro va a cambiar la cuenta de Poringa por esta nueva?", vbYesNo)
If Respu = 6 Then
PoringaU = UsP
PoringaPas = PasP
End If
ElseIf Not PoringaU = UsP And Not PoringaPas = PasP Then
PoringaU = UsP
PoringaPas = PasP
End If
End If
Unload Me
End Select
End Sub
Private Sub Form_Load()
TaringaU = "UsuarioTaringa"
TaringaPas = "Pass"
UsT = TaringaU
PasT = TaringaPas
UsP = PoringaU
PasP = PoringaPas
End Sub