• 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.
  • Posts

    • Sony announces new State of Play games showcase for tomorrow by Pulasthi Ariyasinghe Game publishers love to get their showcases and announcements to happen in June, and following many other companies, Sony has now thrown its hat into the ring as well. There's not long to wait either. The PlayStation maker will be hosting a showcase of its own tomorrow, June 4, focused on titles coming to its platforms. The June State of Play will go live on Wednesday, June 4, at 2pm PT / 5pm ET / 11pm CEST. Fans can catch the show across Sony's YouTube and Twitch channels live. It seems that unlike previous State of Play shows, a Japanese broadcast will not be happening, with only an English stream being confirmed this time. "Watch live for news and updates on must-play games coming to PS5," says the announcement today. "The show highlights a selection of great games from creators across the globe." Other than that, Sony has not given any hints or teasers about what fans can expect to see at the show. We still may get new looks at upcoming first-party titles like Ghost of Yotei from Ghost of Tsushima developer Sucker Punch Productions, Marathon from Destiny studio Bungie, and maybe even Insomniac’s Wolverine title that's set in its Spider-Man universe. Sony still has some live service titles in development that may get some time in the spotlight here too. As always, more PC ports have a chance of being revealed here as well, continuing Sony's multiplatform venture. Following the State of Play showcase, Summer Game Fest will officially kick off with its own event later this week. Microsoft is also preparing to go live with its own Xbox Games Showcase, with a separate Direct stream focused on its next RPG release, The Outer Worlds 2 from Obsidian Entertainment.
    • Hello All Every day MS App store lists the same apps with update available,  select update all, and then think all is fine, and next day same list shows up again.  Any advice on how to fix this for good?   Should i resort to clean install? On the AMD Ryzen 7 7700X Desktop    
    • Battery life for devices like this should - at least - a week. It's not a bl**dy phone you need to charge every day. 'rolls eyes'
  • Recent Achievements

    • Week One Done
      Adam Todd earned a badge
      Week One Done
    • Contributor
      Ed B went up a rank
      Contributor
    • One Month Later
      moporcho earned a badge
      One Month Later
    • One Month Later
      Parotel earned a badge
      One Month Later
    • Reacting Well
      Cryptecks earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      195
    2. 2
      snowy owl
      139
    3. 3
      ATLien_0
      132
    4. 4
      Xenon
      120
    5. 5
      +FloatingFatMan
      104
  • Tell a friend

    Love Neowin? Tell a friend!