-
OK....Im Getting Really Frustrated With My Program....
How Do I Make It So It Deletes With The SelStart Property...
This Is What I Have Tried
<I>
Private Sub Command1_Click
Text1.SelStart = ""
End Sub
</I>
But Every Time I Try Pushing The Button It Wont Work
<H1>Help!</H1>
-
seltext = "" 'not selstart
-
Tried That Too
Yeah I Tried SelText Too...
-
If you want the whole text to disappear, then use this.
-
SelStart is to position the cursor in a textbox or richtextbox control, so if you wanted to position the cursor at the end of the text in the textbox you could do
Code:
txtMyTextBox.SelStart = Len(txtMyTextBox.Text)
-
Deleting selection, if that's what you meant
Code:
If Text1.SelLength Then
Text1 = Left(Text1, Text1.SelStart) & Mid(Text1, Text1.SelStart + Text1.SelLength + 1)
Else
Text1 = Left(Text1, Text1.SelStart) & Mid(Text1, Text1.SelStart + 2)
End If