Der folgende Code erstellt eine TextBox. Dieses Erstellen klapt aber nur in einer Windows-Forms Anwendung und nicht in einer Klassenbibliothek.
Code:
Public Class Form1
Public ValText As New TextBox()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ValText.Name = "Textbox01"
ValText.BackColor = System.Drawing.ColorTranslator.FromWin32(RGB(75, 75, 75))
ValText.ForeColor = Color.Silver
ValText.Location = New Point(16, 6)
ValText.Size = New Size(171, 16)
Me.Controls.Add(ValText)
End Sub
End Class
Danke an alle Antworten







