Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Topaz on August 13, 2005, 10:49 PM

Title: Resetting Focus
Post by: Topaz on August 13, 2005, 10:49 PM
How do you reset focus to the bottom line of a richtextbox?
Title: Re: Resetting Focus
Post by: MyndFyre on August 14, 2005, 02:16 AM
You would want it to select text starting at the index equalling the length of the text in the control, with a length of zero.
Title: Re: Resetting Focus
Post by: UserLoser. on August 14, 2005, 02:26 PM
Quote from: MyndFyre on August 14, 2005, 02:16 AM
You would want it to select text starting at the index equalling the length of the text in the control, with a length of zero.

In other words:


RichTextBox.SelStart = Len(RichTextBox.Text)
RichTextBox.SelLength = 0
Title: Re: Resetting Focus
Post by: Tontow on August 14, 2005, 03:21 PM
Search for the Keyword, " AddChat ".   Its a the a commonly used sub for text boxs in bots.
Title: Re: Resetting Focus
Post by: MyndFyre on August 15, 2005, 10:56 AM
Quote from: Tontow on August 14, 2005, 03:21 PM
Search for the Keyword, " AddChat ".   Its a the a commonly used sub for text boxs in bots.
I don't believe he said he was making a bot.
Title: Re: Resetting Focus
Post by: Lead on September 07, 2005, 09:44 AM
Quote from: MyndFyre on August 15, 2005, 10:56 AM
Quote from: Tontow on August 14, 2005, 03:21 PM
Search for the Keyword, " AddChat ".   Its a the a commonly used sub for text boxs in bots.
I don't believe he said he was making a bot.
So true, at least I hope hes not making a bot ~_~
Title: Re: Resetting Focus
Post by: Topaz on September 07, 2005, 11:24 AM
Why not?