I do not know why your code is not working:
Does the textbox have 3 characters in the textbox
Is the textbox readonly or locked
Is the textbox databound
Do you receive an exception
What does "isn't working" mean
may I suggest:
try
dim sTemp as string = ctype(Me.TextBox1.Text,string)
if stemp.length > 3 then
me.textbox1.text = string.format("{0}{1}","MOO",sTemp.Substring(3))
else
me.textbox1.text = string.format("{0}{1}","PEBKAC #1",sTemp)
end if
catch ex as exception
msgbox string.format("PEBKAC #2{0}{1}",vbcrlf, ex.tostring)
end try
"jvb" <go*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Can anyone tell me why this isn't working in VB.NET 2003? And no, the
problem lies between the keyboard and the back of the chair is not a
valid answer!!!!
Me.TextBox1.SelectionStart = 0
Me.TextBox1.SelectionLength = 3
Me.TextBox1.SelectedText = "MOO"
Thanks