Thread: inserting text in a textbox

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    inserting text in a textbox

    I have this code:

    Code:
    textbox.Text.Insert(4, "Test");
    It simply doesn't work. textbox is a Textbox object and there is at least 500 characters of text already inside the textbox so the start position isn't the problem I don't belive.

    It doesn't insert the text anywere.

  2. #2
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    nvm I figured it out. I didn't realize that insert returned the new string so I had to set textbox.Text to the returned string. It works fine now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting text into listbox
    By twomers in forum Windows Programming
    Replies: 6
    Last Post: 09-02-2007, 09:43 PM
  2. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 02:17 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Replies: 1
    Last Post: 07-13-2002, 05:45 PM
  5. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM