Initial
This commit is contained in:
122
EDOKA/DiverseFormulare/frmPasswort.vb
Normal file
122
EDOKA/DiverseFormulare/frmPasswort.vb
Normal file
@@ -0,0 +1,122 @@
|
||||
|
||||
Public Class frmPasswort
|
||||
Inherits System.Windows.Forms.Form
|
||||
Dim m_isok As Boolean
|
||||
Property isok() As Boolean
|
||||
Get
|
||||
Return m_isok
|
||||
End Get
|
||||
Set(ByVal Value As Boolean)
|
||||
m_isok = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#Region " Vom Windows Form Designer generierter Code "
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
' Dieser Aufruf ist für den Windows Form-Designer erforderlich.
|
||||
InitializeComponent()
|
||||
|
||||
' Initialisierungen nach dem Aufruf InitializeComponent() hinzufügen
|
||||
|
||||
End Sub
|
||||
|
||||
' Die Form überschreibt den Löschvorgang der Basisklasse, um Komponenten zu bereinigen.
|
||||
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing Then
|
||||
If Not (components Is Nothing) Then
|
||||
components.Dispose()
|
||||
End If
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
' Für Windows Form-Designer erforderlich
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'HINWEIS: Die folgende Prozedur ist für den Windows Form-Designer erforderlich
|
||||
'Sie kann mit dem Windows Form-Designer modifiziert werden.
|
||||
'Verwenden Sie nicht den Code-Editor zur Bearbeitung.
|
||||
Friend WithEvents Label1 As System.Windows.Forms.Label
|
||||
Friend WithEvents Button1 As System.Windows.Forms.Button
|
||||
Friend WithEvents Button2 As System.Windows.Forms.Button
|
||||
Friend WithEvents PasswortText As System.Windows.Forms.TextBox
|
||||
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmPasswort))
|
||||
Me.PasswortText = New System.Windows.Forms.TextBox()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.Button1 = New System.Windows.Forms.Button()
|
||||
Me.Button2 = New System.Windows.Forms.Button()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'PasswortText
|
||||
'
|
||||
Me.PasswortText.Location = New System.Drawing.Point(72, 24)
|
||||
Me.PasswortText.Name = "PasswortText"
|
||||
Me.PasswortText.PasswordChar = Microsoft.VisualBasic.ChrW(42)
|
||||
Me.PasswortText.Size = New System.Drawing.Size(144, 20)
|
||||
Me.PasswortText.TabIndex = 0
|
||||
Me.PasswortText.Text = ""
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.Location = New System.Drawing.Point(8, 24)
|
||||
Me.Label1.Name = "Label1"
|
||||
Me.Label1.Size = New System.Drawing.Size(56, 23)
|
||||
Me.Label1.TabIndex = 1
|
||||
Me.Label1.Text = "Passwort:"
|
||||
'
|
||||
'Button1
|
||||
'
|
||||
Me.Button1.Location = New System.Drawing.Point(32, 72)
|
||||
Me.Button1.Name = "Button1"
|
||||
Me.Button1.TabIndex = 2
|
||||
Me.Button1.Text = "&OK"
|
||||
'
|
||||
'Button2
|
||||
'
|
||||
Me.Button2.Location = New System.Drawing.Point(144, 72)
|
||||
Me.Button2.Name = "Button2"
|
||||
Me.Button2.TabIndex = 3
|
||||
Me.Button2.Text = "&Abbruch"
|
||||
'
|
||||
'frmPasswort
|
||||
'
|
||||
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
||||
Me.ClientSize = New System.Drawing.Size(240, 117)
|
||||
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button2, Me.Button1, Me.Label1, Me.PasswortText})
|
||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||
Me.Name = "frmPasswort"
|
||||
Me.Text = "Passwort"
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
|
||||
Me.DialogResult = DialogResult.OK
|
||||
isok = True
|
||||
Close()
|
||||
End Sub
|
||||
|
||||
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
|
||||
isok = False
|
||||
Me.DialogResult = DialogResult.Abort
|
||||
Close()
|
||||
End Sub
|
||||
|
||||
Private Sub PasswortText_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles PasswortText.KeyDown
|
||||
If e.KeyCode = Keys.Enter Then Me.Button1_Click(sender, e)
|
||||
End Sub
|
||||
|
||||
Private Sub frmPasswort_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub PasswortText_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PasswortText.TextChanged
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user