FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PROBLEM: Using .lines in VB 2005

 


ThePolemistis
HI,

I have a textbox and I want to use the .lines property so on a button click, I have:

Code:
       
Dim Sentence As String
For Each Sentence In txtDesc.lines
         
....

Next



However, .lines is not recognised as a property for txtDesc. txtDesc is allow set to multline =true.


How do I make it so that txtDesc.lines would work???


PS Im using Windows Mobile Developer Device Kit with VB 2005
fromegame
System.Windows.Forms.TextBox.Lines is an array. If you want the amount of lines you should use
Code:
TextBox1.Lines.Length
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.