• 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

    • Yeah, I administrated a virtual desktop pool years ago during the Windows 7 days. There were a number of animations and effects that really killed performance. I setup a number of group policies to turn off all the things that make the desktop feel unresponsive. I didn't just blindly turn everything off, I turned things off that created a lot of motion, because that is where VDI struggles, but things that made the UI look pretty, but didn't use animation, I left turned on. Kind of a funny combination of settings to see Aero Glass and drop shadows enabled, but show window contents while dragging turned off, but hey, it is what worked.
    • It isn't fully a placebo. If a UI element uses a 0.25 second animation to appear, then removing the animation saves 0.25 seconds. That saved 0.25 seconds may not make any difference in how quickly you can click on something, but it will affect how quickly you can see it. Just depends on your goals.
    • I had to turn it off a long time ago on my work machine because virtual desktops were brutal when switching. Big thread about it on Microsoft forums. With animations off it's instant. Sucks as I had to uninstall Deskscapes as it requires animations but on my work machine productivity takes precedence.
    • Even though this tweak is basically just a placebo, I still find myself using it fairly often. There are better options out there, but the CrapFixer app https://github.com/builtbybel/CrapFixer is useful for testing and restoring the original state if needed
    • That’s such a heartwarming story — it really shows the strong sense of community Waffle House is known for. If anyone’s curious about what they offer or planning a visit, you can see full menu with updated prices and calories for 2025.
  • Recent Achievements

    • First Post
      Johnny Mrkvička earned a badge
      First Post
    • Week One Done
      viraltui earned a badge
      Week One Done
    • One Month Later
      serfegyed earned a badge
      One Month Later
    • Dedicated
      firey earned a badge
      Dedicated
    • Dedicated
      fettermanj earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      656
    2. 2
      ATLien_0
      224
    3. 3
      Michael Scrip
      224
    4. 4
      Xenon
      146
    5. 5
      +FloatingFatMan
      143
  • Tell a friend

    Love Neowin? Tell a friend!