Coffeehouse Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

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


Conversation locked

This conversation has been locked by the site admins. No new comments can be made.