Share via

extrack lines of text from a textbox

Ron399 0 Reputation points
Mar 19, 2023, 7:18 PM

I need to extrack each line in a multi line text box one by one and put them in a string variable

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,335 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 118.8K Reputation points
    Mar 19, 2023, 7:58 PM

    For example, in Windows Forms applications, in VB:

    For Each line In TextBox1.Lines
       
    Next
    

    The line variable will contain the lines one-by-one.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.