Link to home
Start Free TrialLog in
Avatar of IssacJones
IssacJones

asked on

carriage return

Hi

I am trying to get a line break in a VB application. Specifically, in the Splash Screen I am using (standard VB.Net template) the application name is taken from the Assembly Information. The name is "My Software". How can I include a line break so it appears as

      My
  Software

on the splash screen?

I thought something like "My\nSplashScreen" would work but it doesn't (obviosuly because it is C++ but you get the idea). Is there a corresponding VB way of doing it?

Issac
Avatar of VipulKadia
VipulKadia
Flag of India image

Use VBCRLF :
e.g. : "My" + VBCRLF + "Software".
Avatar of Éric Moreau
or:
"My" + environment.newline + "Software"
Avatar of IssacJones
IssacJones

ASKER

I'm afraid that can't be entered as the assemby title :(
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HI James

Almost there - unfortunately, what if the title has multiple " "'s e.g. "My New Software". In this case, I'd want

             My
        New Software

and not

            My
         New
        Software
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That was not presented that way in the question. We have to start all over again.


Is this something you use in only one application or that you will reuse?

If it is only one application, could the name change in the future?

If you will reuse it, will the beginning part always be My, or only one word. If always one word, always a 2 letters word? If many words, will you always split only in 2 lines and always after the first  word?

If it will be reused in different applications, show us a few of the application names you expect.
The code would be re-used in different applications. Both your comments have helped enourmously. Thanks!