Textbox Question

This is a discussion on Textbox Question within the C# Programming forums, part of the General Programming Boards category; i have a textbox and i was wondering how i could add text to where the cursor is. For example: ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    18

    Textbox Question

    i have a textbox and i was wondering how i could add text to where the cursor is. For example:

    | = cursor

    hey my | is someone.

    And then i had some button that i would want to add "name" to that simple sentece.

    if this is complicated to do, just tell me, im pretty new to C# and i dont think that i would be able to really understand complicated things

  2. #2
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    I believe you should start inserting your text at :

    textBox1.SelectionStart

    I'm not sure of the best way to insert
    text into a string at a specified point.



    If anyone can get this going post some code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 03-02-2009, 08:33 AM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21