bernardmanning
Programmer
Hi, I';m trying to create a series of controls that will act as my base controls in my application, to give a consistant look and feel.
I've created my base command button as below :-
When I drag this onto one of my forms it works great, all the properties get set correctly apart from the Text property.
The text property always defaults to BaseTextBox1, BaseTextBox2 etc.
Does anybody know why this doesn't work?
Many Thanks, Bernard
I've created my base command button as below :-
Code:
Public Class BaseTextBox
Inherits System.Windows.Forms.TextBox
Sub New()
Me.Width = 75
Me.BorderStyle = BorderStyle.Fixed3D
Me.BackColor = Color.PowderBlue
Me.Text = "SomeDefaultText"
End Sub
End Class
When I drag this onto one of my forms it works great, all the properties get set correctly apart from the Text property.
The text property always defaults to BaseTextBox1, BaseTextBox2 etc.
Does anybody know why this doesn't work?
Many Thanks, Bernard