Re: VB6 - Label - force single-line display?
From: Jan Hyde (StellaDrinker_at_REMOVE.ME.uboot.com)
Date: 02/26/04
- Next message: Vlad: "Re: Visual Sudio Installer problem"
- Previous message: Al Reid: "Re: Databases - Beginner's Question"
- In reply to: Robert: "VB6 - Label - force single-line display?"
- Next in thread: Robert: "Re: VB6 - Label - force single-line display?"
- Reply: Robert: "Re: VB6 - Label - force single-line display?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Feb 2004 12:46:49 +0000
"Robert" <noone@nowhere.com>'s wild thoughts were released
on Thu, 26 Feb 2004 12:28:03 +0100 bearing the following
fruit:
>Hello,
>
>does anyone know how to force a label to display its contents single-line
>(even when this means cutting of text at the end?
>My label is just high enough for 1 text line, WordWrap is false, and still
>the second word would wrap to the (invisible) second line if it's too long!
>
You could set AutoSize = True, WordWrap = false and then
manually set the width
Label1.Caption = "This is a long piece of text in a label
control"
Label1.Width = 400
or you could put the label in a container and let the label
autosize.
-- Jan Hyde (MVP - Visual Basic) The average guy thinks about sex once every six tits [Abolish the TV Licence - http://www.tvlicensing.biz/]
- Next message: Vlad: "Re: Visual Sudio Installer problem"
- Previous message: Al Reid: "Re: Databases - Beginner's Question"
- In reply to: Robert: "VB6 - Label - force single-line display?"
- Next in thread: Robert: "Re: VB6 - Label - force single-line display?"
- Reply: Robert: "Re: VB6 - Label - force single-line display?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|