Results 1 to 3 of 3

Thread: Why does Textbox highlight text?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367

    Why does Textbox highlight text?

    anyone know why when setting the text value of a textbox in runtime it highlights the text in the textbox?

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    i dont get the highlighting problem , but i know that if you set the SelectionStart to the length of text it should prevent it being highlighted , eg:
    VB Code:
    1. textBox1.AppendText("some text");
    2. textBox1.SelectionStart = textBox1.Text.Length;
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This property should be on .
    Code:
    textBox1.HideSelection=true;

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