Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi everyone.

 

Is it possible to have multiline property on a label? I need to type a few lines of text on a label, but cant seem to navigate between lines. For textboxes, you just set Multiline to True and when u press enter, it goes to the next line. Is there any equivalent way of doing this when dealing with a label?

 

Thanks.

Posted

Sam,

 

A Textbox control has a Multiline property and a seperate ScrollBars property.

 

You were probably thinking of a RichTextBox that, by default, has ScrollBars = True (but this could be changed as well).

 

A textbox will require to set Multiline = True, but it has already a default of ScrollBars = False, so no change would be required.

 

The problem that I can see would be the fact that, if your text is longer than the available space in the control, you would see only a portion of it.

 

But, multiple labels or carriage returns would conclude in the same issue. Too much is too much :)

 

Agree?

IS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...