VB6
text1.text = "some text" & vbcrlf & "second line of text"

VB5 and earlier
text1.text = "some text" & chr$(10) & chr$(13)  & "second line of text"
And set the multi line property to true

Matt

plasmacoder wrote:

>Anyone know how to get VB to line feed in a text box? I have tried 
>everything! I am using:
>
> txtbox1.text = "G01" 
>
>That works for the first line, how do I position the cursor for the 
>second line?
>
>thanks for any help.
>
>
>
>
>
>
>
>
>
>'// =======================================================
>    Rules : http://ReliableAnswers.com/List/Rules.asp
>    Home  : http://groups.yahoo.com/group/vbHelp/
>    =======================================================
>    Post  : [email protected]
>    Join  : [EMAIL PROTECTED]
>    Leave : [EMAIL PROTECTED]
>'// =======================================================
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to