todonnell69
Member
- Joined
- Jun 8, 2005
- Messages
- 15
- Programming Experience
- 5-10
I created a simple extended textbox control by using Inherits System.Windows.Forms.TextBox and then just added some of my own functionality. I did not use the visual designer at all.
My question is, when I instantiate the control, it has the standard 'Textbox1' as the default text. I tried using me.text = "" in the control's sub New, but that didn't remove the text.
Is the constructor the correct place for the 'me.text = ""' ?
...If not, why wouldn't it work there?
Thanks...
My question is, when I instantiate the control, it has the standard 'Textbox1' as the default text. I tried using me.text = "" in the control's sub New, but that didn't remove the text.
Is the constructor the correct place for the 'me.text = ""' ?
...If not, why wouldn't it work there?
Thanks...