Jym
November 28th, 2002, 05:29 PM
in visual basic 6 I used
txtbox.SelStart = 0
txtbox.SelLength = Len(txtbox.Text)
when someone entered a textbox and the text would then become highlighted so the user just had to start typing and the "old" text would be deleted, now in VB .NET when I do that it tells me that .SelStart isn't a system.windows.form.textbox nor is .SelLength is there some way I can have the text highlighted when the user enters the textbox in vb .NET ?
Thanks
Jym
I tried to use
Txtbox.SelectionStart = 0
Txtbox.SelectionLength = Len(Txtbox.Text)
but it doesn't seem to work in my program
txtbox.SelStart = 0
txtbox.SelLength = Len(txtbox.Text)
when someone entered a textbox and the text would then become highlighted so the user just had to start typing and the "old" text would be deleted, now in VB .NET when I do that it tells me that .SelStart isn't a system.windows.form.textbox nor is .SelLength is there some way I can have the text highlighted when the user enters the textbox in vb .NET ?
Thanks
Jym
I tried to use
Txtbox.SelectionStart = 0
Txtbox.SelectionLength = Len(Txtbox.Text)
but it doesn't seem to work in my program