• 0

[VB6] Inserting text into a TextBox


Question

11 answers to this question

Recommended Posts

  • 0
  TotalKaosTM said:
I think you guys read to fast...

If you haden't noticed, I wrote INSERT TEXT not CHANGE TEXT.

Geesh... you guys never help!

What the heck do you mean insert text not change it? How can you insert and not change? Winston's code is what you want if you want the original text in there too.

  • 0

excuse me?...

well sorry you're too good for us, and i have posted the code that would insert wateva text into a textbox, if you're saying that a texbox itself already contains text and you want to add more text into it, you do the following

textbox.text = textbox.text & " whatever text"

where the whatever text is the new text u wanna add into the textbox, and the textbox.text &, concactenates the pre-existing text in the textbox with the additional new text you would like to INSERT

  • 0
  TotalKaosTM said:
I think you guys read to fast...

If you haden't noticed, I wrote INSERT TEXT not CHANGE TEXT.

Geesh... you guys never help!

Get off your high horse ya ***, if you read the replies correctly, Winston answered your question.

And what do you mean never help??? You've only asked one question here on neowin, a question that could have been answered using Google

  • 0

if you want a button that inserts text to the current cursor position, you do

Private Sub Buttton1_Click
           TextBox.SelText = "Text Here"
End Sub

Seltext is a variable which contains the current selected text or cursor positiion in the text file. You can also change it, as shown.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.