Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to remove specific line in a multiline text box using visual basic

    Hi..!
    How to remove specific line in a multiline text box using visual basic?

    Thanks..hope anyone can help..

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    afaik this cannot be done. a textbox doesnt keep the individual lines in a collection-type-property of the textbox-object, it stores the text as one string-object in the .Text property. If you change the size of the box, the words are divided over the lines differently, that should give you this hint. What you can do is scan the text-property of the box for the part to delete (maybe between two vbCr´s), and then alter the text that way, but that would have to be a rather fuzzy search


  •  

    Posting Permissions

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