Monday, March 1, 2010

Programmer - How to check if label in VB.net (VS2008) has multiple lines?

Programmer Question

Hi,



I have a method that saves form controls data to a text file, including its text. IF a label has multiple lines, this breaks the text file writing multiple lines to it.



I was instructed to simply ignore multiple-line labels and don't include it in the file, but I don't know how to check whether or not a label has can multiple lines or not so I can throw in an 'if' statement.



Thanks!



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails