You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
4.1 KiB
113 lines
4.1 KiB
Public Class frmCalendar_SP
|
|
Inherits System.Windows.Forms.Form
|
|
|
|
#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 MonthCalendar1 As System.Windows.Forms.MonthCalendar
|
|
Friend WithEvents btnAbbruch As System.Windows.Forms.Button
|
|
Friend WithEvents Button1 As System.Windows.Forms.Button
|
|
Friend WithEvents Panel1 As System.Windows.Forms.Panel
|
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
|
Me.MonthCalendar1 = New System.Windows.Forms.MonthCalendar()
|
|
Me.btnAbbruch = New System.Windows.Forms.Button()
|
|
Me.Button1 = New System.Windows.Forms.Button()
|
|
Me.Panel1 = New System.Windows.Forms.Panel()
|
|
Me.Panel1.SuspendLayout()
|
|
Me.SuspendLayout()
|
|
'
|
|
'MonthCalendar1
|
|
'
|
|
Me.MonthCalendar1.Location = New System.Drawing.Point(3, 0)
|
|
Me.MonthCalendar1.Name = "MonthCalendar1"
|
|
Me.MonthCalendar1.ShowTodayCircle = False
|
|
Me.MonthCalendar1.TabIndex = 0
|
|
'
|
|
'btnAbbruch
|
|
'
|
|
Me.btnAbbruch.DialogResult = System.Windows.Forms.DialogResult.Cancel
|
|
Me.btnAbbruch.Location = New System.Drawing.Point(3, 160)
|
|
Me.btnAbbruch.Name = "btnAbbruch"
|
|
Me.btnAbbruch.TabIndex = 1
|
|
Me.btnAbbruch.Text = "&Abbruch"
|
|
'
|
|
'Button1
|
|
'
|
|
Me.Button1.DialogResult = System.Windows.Forms.DialogResult.OK
|
|
Me.Button1.Location = New System.Drawing.Point(119, 160)
|
|
Me.Button1.Name = "Button1"
|
|
Me.Button1.TabIndex = 2
|
|
Me.Button1.Text = "&OK"
|
|
'
|
|
'Panel1
|
|
'
|
|
Me.Panel1.Controls.AddRange(New System.Windows.Forms.Control() {Me.MonthCalendar1, Me.btnAbbruch, Me.Button1})
|
|
Me.Panel1.Name = "Panel1"
|
|
Me.Panel1.Size = New System.Drawing.Size(200, 192)
|
|
Me.Panel1.TabIndex = 3
|
|
'
|
|
'frmCalendar_SP
|
|
'
|
|
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
|
Me.ClientSize = New System.Drawing.Size(200, 192)
|
|
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Panel1})
|
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
|
|
Me.Name = "frmCalendar_SP"
|
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.Manual
|
|
Me.Text = "Datum auswählen"
|
|
Me.Panel1.ResumeLayout(False)
|
|
Me.ResumeLayout(False)
|
|
|
|
End Sub
|
|
|
|
#End Region
|
|
|
|
Dim m_datum As Date
|
|
|
|
Private Sub btnAbbruch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAbbruch.Click
|
|
Me.Close()
|
|
End Sub
|
|
|
|
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
|
|
Me.Close()
|
|
End Sub
|
|
|
|
Private Sub frmCalendar_SP_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
|
Me.Width = Me.MonthCalendar1.Width + 7
|
|
Me.Height = Me.MonthCalendar1.Height + Me.Button1.Height + 10
|
|
End Sub
|
|
|
|
Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
|
|
|
|
End Sub
|
|
|
|
Private Sub gaga(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MonthCalendar1.DoubleClick
|
|
MsgBox("Hallo")
|
|
End Sub
|
|
End Class
|