Software Development Network>> Visual Basic>> Creating a Text Box In a Class
Joshizzle wrote:Its not working... I dont see it
Private WithEvents Topic As new textbox Public Sub New() Topic.BackColor = Color.Red Topic.Size = New Size(200, 200) Topic.text = "Testing" Topic.Location = New Point(1, 2) Me.Controls.Add(Topic) End Sub
Public Class ChatTab
Inherits TabPage
Private WithEvents txtbx as New TextBox
Public Sub New()
With txtbx
.Location=...
.Name=...
'Set other properties here
End WIth
Me.Controls.Add(txtbx)
End Sub
end Class
Creating a Text Box In a Class
Prabagarane
Private WithEvents Topic As new textbox
Public Sub New()
Topic.BackColor = Color.Red
Topic.Size = New Size(200, 200)
Topic.text = "Testing"
Topic.Location = New Point(1, 2)
End Sub
Kyndig
Private WithEvents Topic As new textbox
Public Sub New()
Topic.BackColor = Color.Red
Topic.Size = New Size(200, 200)
Topic.text = "Testing"
Topic.Location = New Point(1, 2)
Me.Controls.Add(Topic)
End Sub
jonesbrasil
tabcontrol1.tabpages.add(new chattab)
Raja Nadar
Public Class ChatTab
Inherits TabPage
Private WithEvents txtbx as New TextBox
Public Sub New()
With txtbx
.Location=...
.Name=...
'Set other properties here
End WIth
Me.Controls.Add(txtbx)
End Sub
end Class
kwards3