Public Class frmNewNote 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 Label1 As System.Windows.Forms.Label Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents Button2 As System.Windows.Forms.Button Private Sub InitializeComponent() Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmNewNote)) Me.Label1 = New System.Windows.Forms.Label() Me.TextBox1 = New System.Windows.Forms.TextBox() Me.Button1 = New System.Windows.Forms.Button() Me.Button2 = New System.Windows.Forms.Button() Me.SuspendLayout() ' 'Label1 ' Me.Label1.Location = New System.Drawing.Point(8, 8) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(100, 16) Me.Label1.TabIndex = 0 Me.Label1.Text = "Notiz" ' 'TextBox1 ' Me.TextBox1.Location = New System.Drawing.Point(8, 24) Me.TextBox1.Multiline = True Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(472, 128) Me.TextBox1.TabIndex = 1 Me.TextBox1.Text = "" ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(160, 160) Me.Button1.Name = "Button1" Me.Button1.TabIndex = 2 Me.Button1.Text = "&Abbruch" ' 'Button2 ' Me.Button2.DialogResult = System.Windows.Forms.DialogResult.OK Me.Button2.Location = New System.Drawing.Point(240, 160) Me.Button2.Name = "Button2" Me.Button2.TabIndex = 3 Me.Button2.Text = "&Speichern" ' 'frmNewNote ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.ClientSize = New System.Drawing.Size(496, 190) Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button2, Me.Button1, Me.TextBox1, Me.Label1}) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.Name = "frmNewNote" Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen Me.Text = "Neue Notiz erfassen" Me.ResumeLayout(False) End Sub #End Region Public ondemand As Object Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim ret As Short Me.TextBox1.Text = Me.TextBox1.Text + vbCrLf + vbCrLf + "----------------------------------------------------" Me.TextBox1.Text = Me.TextBox1.Text + vbCrLf Me.TextBox1.Text = Me.TextBox1.Text + Globals.CurrentMitarbeiterdata.Rows(0).Item("name") + " " + Globals.CurrentMitarbeiterdata.Rows(0).Item("vorname") + ", " + Globals.CurrentMitarbeiterdata.Rows(0).Item("tgnummer") ret = Me.ondemand.AnnotateDoc(0, Me.TextBox1.Text, 1, 1, 0) End Sub Private Sub frmNewNote_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.DialogResult = DialogResult.Abort Me.Close() End Sub End Class