how to select two texts at the same time? i wrote this but it doesnt show selected text or doesnt even select it :confused:
Code:Textbox1.SelStart=Textbox2.SelStart
Textbox1.SelLength=Textbox2.SelLength
Printable View
how to select two texts at the same time? i wrote this but it doesnt show selected text or doesnt even select it :confused:
Code:Textbox1.SelStart=Textbox2.SelStart
Textbox1.SelLength=Textbox2.SelLength
Try setting HideSelection to false on the textboxes.
You have two problems. First of all you can never have two texts selected at the same time and second, if you do that code, say, in a command button the command button takes the focus so neither textbox is selected.
i couldnt do that
hmm.. what about highlighting? actually i m trying to make a hex editor view with masked edit boxes. something like that:
http://img6.imageshack.us/img6/8045/hexo.jpg
i did it:
but now i have to adapt it to maskedbox but maskedbox hasn't a MouseMove event :confused:Code:Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text2.SelStart = Text1.SelStart
Text2.SelLength = Text1.SelLength
Text1.SetFocus
End Sub