|
-
Jul 29th, 2000, 10:04 PM
#1
Thread Starter
Hyperactive Member
Sorry, I'm working on an HTML editing program and fixing a lot of minor bugs.
Can anyone tell me how to insert a character into a text box at the position of the blinking cursor?
I can guarantee I'll be needing a few other questions answered, so keep looking please.
-
Jul 29th, 2000, 10:25 PM
#2
Code:
Text1.SelStart = Len(Text1)
Text1.SelText = " more text added to the end?"
'or
Text1.text = Text1.text & "more text?"
-
Jul 29th, 2000, 10:28 PM
#3
Thread Starter
Hyperactive Member
I can add it to the end easily enough, I just need to know how to insert a string at the position of the cursor, even in the middle of the text box text.
-
Jul 29th, 2000, 11:19 PM
#4
Thread Starter
Hyperactive Member
Hey Aaron! Do you know it?
-
Jul 30th, 2000, 11:11 AM
#5
Thread Starter
Hyperactive Member
Hello? Anyone gonna help?
-
Jul 30th, 2000, 12:55 PM
#6
Are you using a Rich Text Box? If you are, then you should be able to do what you are asking.
If your not, go to Project->Components and look for Microsoft Rich Text Box Control.
Click the little check box next to it, and click apply. Now it is in your toolbox ready to be used.
Sorry for wasting your time if this isn't what you ment...good luck.
-
Jul 30th, 2000, 01:37 PM
#7
I'm not exactly sure what you are trying to do, but you can get the points where the mouse is located.
Code:
Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Caption = X & ", " & Y
End Sub
Oh yeah, and if your making an HTML Editor, you may have to use a RichTextBox because a regular Textbox has a limit of characters while a RichTextBox doesn't.
-
Jul 30th, 2000, 02:15 PM
#8
Thread Starter
Hyperactive Member
You had it right the first time Matthew Gates. I just didn't follow because it seemed like that was to put it at the end of the string, instead of in the middle. But I got it explained in a different thread and see what to do now.
Thanks for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|