extrack lines of text from a textbox

Ron399 0 Reputation points
2023-03-19T19:18:47.74+00:00

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,100 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 117.1K Reputation points
    2023-03-19T19:58:15.4466667+00:00

    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.