
Originally Posted by
argiejulaton
oh! thank you

what i mean is when you highlight a text it's automatically store the value of the highlighted in a variable.
Nothing get's automatically stored into value, you'll have to do that yourself:
Get the selected text into clipboard:
Code:
Call Clipboard.clear
call Clipboard.SetText(mid$(Textbox1.Text, Textbox1.SelStart, Textbox1.SelLength))
get Clipboard text into variable:
Code:
Dim s as string
s = Clipboard.GetText
Ofcourse if you just need the highlighted text into a mesagebox/variable and you are on the form where the textbox is, you'll just use:
Code:
call MsgBox(mid$(Textbox1.Text, Textbox1.SelStart, Textbox1.SelLength))
Dim s as string
s = mid$(Textbox1.Text, Textbox1.SelStart, Textbox1.SelLength)