1 |
VERSION 5.00 |
2 |
Begin VB.Form Form_Credentials |
3 |
BorderStyle = 1 'Fixed Single |
4 |
Caption = "VPN Anmeldeinformationen" |
5 |
ClientHeight = 2235 |
6 |
ClientLeft = 45 |
7 |
ClientTop = 330 |
8 |
ClientWidth = 5475 |
9 |
LinkTopic = "Form1" |
10 |
MaxButton = 0 'False |
11 |
MinButton = 0 'False |
12 |
ScaleHeight = 2235 |
13 |
ScaleWidth = 5475 |
14 |
StartUpPosition = 2 'CenterScreen |
15 |
Begin VB.Frame Frame_Main |
16 |
Height = 1995 |
17 |
Left = 120 |
18 |
TabIndex = 0 |
19 |
Top = 120 |
20 |
Width = 5205 |
21 |
Begin VB.CommandButton Command_Cancel |
22 |
Caption = "&Abbrechen" |
23 |
Height = 405 |
24 |
Left = 2880 |
25 |
TabIndex = 6 |
26 |
Top = 1470 |
27 |
Width = 2205 |
28 |
End |
29 |
Begin VB.CommandButton Command_Ok |
30 |
Caption = "&OK" |
31 |
Height = 405 |
32 |
Left = 120 |
33 |
TabIndex = 5 |
34 |
Top = 1470 |
35 |
Width = 2205 |
36 |
End |
37 |
Begin VB.TextBox Text_pass |
38 |
Height = 315 |
39 |
IMEMode = 3 'DISABLE |
40 |
Left = 1560 |
41 |
PasswordChar = "*" |
42 |
TabIndex = 4 |
43 |
Top = 810 |
44 |
Width = 2805 |
45 |
End |
46 |
Begin VB.TextBox Text_user |
47 |
Height = 315 |
48 |
Left = 1560 |
49 |
TabIndex = 3 |
50 |
Top = 420 |
51 |
Width = 2805 |
52 |
End |
53 |
Begin VB.Label Label_pass |
54 |
Caption = "Passwort:" |
55 |
Height = 255 |
56 |
Left = 330 |
57 |
TabIndex = 2 |
58 |
Top = 870 |
59 |
Width = 1335 |
60 |
End |
61 |
Begin VB.Label Label_user |
62 |
Caption = "Benutzername:" |
63 |
Height = 255 |
64 |
Left = 330 |
65 |
TabIndex = 1 |
66 |
Top = 450 |
67 |
Width = 1335 |
68 |
End |
69 |
End |
70 |
End |
71 |
Attribute VB_Name = "Form_Credentials" |
72 |
Attribute VB_GlobalNameSpace = False |
73 |
Attribute VB_Creatable = False |
74 |
Attribute VB_PredeclaredId = True |
75 |
Attribute VB_Exposed = False |
76 |
Public ras_connectionName As String |
77 |
Public ras_phoneBook As String |
78 |
|
79 |
Private Sub Form_Load() |
80 |
Frame_Main.Caption = "Verbindungsname: " & ras_connectionName |
81 |
End Sub |
82 |
|
83 |
Private Sub Command_Ok_Click() |
84 |
Dim setup_user As String, setup_pass As String |
85 |
setup_user = Text_user.Text |
86 |
setup_pass = Text_pass.Text |
87 |
SetupRasEntry ras_connectionName, ras_phoneBook, setup_user, setup_pass |
88 |
Unload Me |
89 |
End Sub |
90 |
|
91 |
Private Sub Command_Cancel_Click() |
92 |
Unload Me |
93 |
End Sub |
94 |
|
95 |
Private Sub Text_user_KeyPress(KeyAscii As Integer) |
96 |
If KeyAscii = Asc(vbNewLine) Then |
97 |
Command_Ok_Click |
98 |
End If |
99 |
End Sub |
100 |
|
101 |
Private Sub Text_pass_KeyPress(KeyAscii As Integer) |
102 |
If KeyAscii = Asc(vbNewLine) Then |
103 |
Command_Ok_Click |
104 |
End If |
105 |
End Sub |
106 |
|