Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Windows Forms Textbox - Read line by line

$
0
0

Hello,

I am not sure this can be done, I remember seeing a post on the Scripting Guys Blog stating you cannot read a Forms TextBox line by line, but knowing this is .NET based I am in denial about this.  I have tried many different ways of pulling the text out and got close with one attempt where I pull the text out and put into a temp variable, use TEXT.SPLIT to split at each `r`n but when I throw it in an array, it still puts the whole string back in.  I have also tried outputting to a text file so I can FOREACH it and almost got that working, but it adds in multiple `r`n so I have whitespace and then also does not read it properly.

 

I am thinking there has got to be an easy way to do this right?!  Guess I better be getting back on refreshing my .NET!


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images