Results 1 to 3 of 3

Thread: SelectedText wont work?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2004
    Posts
    1,202

    SelectedText wont work?

    Hello,

    seems we have a custom Textbox and i and use the Inherits Control
    and added a New Windows.Forms.TextBox as control
    but seems i can't use the SelectedText

    when i use the bottom code
    i don't get any SelectedText??

    vb Code:
    1. TextBox1.SelectedText += "some text"
    2. 'but some text don't come :(

    vb Code:
    1. Public Overridable Property SelectedText As String

    Source

    http://msdn.microsoft.com/en-us/libr...code-snippet-1
    come back and mark your original post as resoved if your problem is fixed

    Jamie Garland

  2. #2
    Frenzied Member Gruff's Avatar
    Join Date
    Jan 2014
    Location
    Scappoose Oregon USA
    Posts
    1,293

    Re: SelectedText wont work?

    What are you trying to achieve? Between the linked sample and your code I am somewhat confused.
    Burn the land and boil the sea
    You can't take the sky from me


    ~T

  3. #3
    Addicted Member
    Join Date
    Oct 2012
    Location
    Springfield, IL
    Posts
    142

    Re: SelectedText wont work?

    TextBox1.SelectedText += "some text"

    That code will insert "some text" at the caret position.

    What do you want it to do?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width