Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

vb text box

  • 07-09-2002 09:50PM
    #1
    Registered Users, Registered Users 2 Posts: 2,005 ✭✭✭


    I have an annoying little problem. I can't get a carriage return to work in a text box. I use Chr(13) to get the carriage return but all that appears is something like ¦ a little vertical black line. It's really annoying. Can anyone help?


Comments

  • Registered Users, Registered Users 2 Posts: 935 ✭✭✭Mixie


    Try vbCrLf instead then (tho yours should work afair)


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    For windows you need a Line Feed character (10) as well as the Carraige Return (13) - vbCrLf does that -

    txtStuff.text = "line one" & vbCrLf & "line two"


  • Registered Users, Registered Users 2 Posts: 15,443 ✭✭✭✭bonkey


    Dont forget to set the multiline property to true as well :)

    jc


  • Closed Accounts Posts: 61 ✭✭wish


    also
    you can use vbNewLine


  • Registered Users, Registered Users 2 Posts: 2,005 ✭✭✭CivilServant


    Thanks guys!!

    I couldn't find that anywhere on the web!!

    As you can see I'm just starting out with VB even though I'm a computers student for years now!

    Whats the best place on the net for VB stuff lads?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    www.planet-source-code.com is a useful resource sometimes, despite the terrible layout.

    That, google, and the programming board right here should take care of almost any question you might have.


Advertisement