Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

vb text box

  • 07-09-2002 8: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