Coffeehouse Thread

3 posts

Need help;Visual Basic .NET

Back to Forum: Coffeehouse
  • User profile image
    henningms

    Hello, I just recently got Visual Studio .NET and been trying to create some applications but there is something I don't understand and that is a TextBoxs SelectionStart, it's supposed to be the same as Visual Basic 6s SelStart right? But When ever I try to use it like this:

    txtChat.SelectionStart = Len(txtChat.Text)

    It simply doesn't work, and I am still wondering why.

    - Henning

  • User profile image
    Manip

    This is a guess cause I don't use VB.Not but

    txtChat.SelectionStart = txtChat.Text.Length

  • User profile image
    FluffyDevil​Bunny

    SelectionStart is the beginning of the string:


    txtChat.SelectionStart = 0
    txtChat.SelectionLength = txtChat.Text.Length


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.