Re: Horizontal Scrollbar For Lisbox
From: Justin Starnes (captainstarnes_at_hotmail.com)
Date: 10/20/04
- Next message: Justin Starnes: "Re: Horizontal Scrollbar For Lisbox"
- Previous message: Robin Hammond: "Re: Horizontal Scrollbar For Lisbox"
- In reply to: Robin Hammond: "Re: Horizontal Scrollbar For Lisbox"
- Next in thread: Justin Starnes: "Re: Horizontal Scrollbar For Lisbox"
- Reply: Justin Starnes: "Re: Horizontal Scrollbar For Lisbox"
- Reply: Paul Robinson: "Re: Horizontal Scrollbar For Lisbox"
- Reply: Andy Pope: "Re: Horizontal Scrollbar For Lisbox"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 19 Oct 2004 20:53:52 -0400
Unfortunately, the problem with that solution is that I cannot accurately
determine the width of the longest string. To solve that problem, I tried
using the GetTextExtent32 function to obtain the length of the string.
Hoewver, when I set columnwidths to that value, I don't get the correct
result. ColumnWidths defaults to points for the specification. Is
GetTextExtent returning twips, pixels, etc.? I tried to convert it to
points, but am not having much luck. Any ideas?
"Robin Hammond" <rjNOrhSPAM@PLEASEnetvigator.com> wrote in message
news:OUtzfqjtEHA.4040@TK2MSFTNGP09.phx.gbl...
> Just set the columnwidth to more than the width of the listbox in the
> properties pane in the VBE.
>
> Robin Hammond
> www.enhanceddatasystems.com
>
> "Justin Starnes" <captainstarnes@hotmail.com> wrote in message
> news:OqAnWhjtEHA.376@TK2MSFTNGP09.phx.gbl...
>>I have a listbox on a userform that contains entries longer than the
>>length of the listbox. Thus, I'm looking to add a horizontal scrollbar to
>>the listbox but am having trouble finding a code sample for userforms.
>>Does anyone have an example or can help me get one working with userforms?
>>
>> Thanks,
>> Justin
>>
>
>
- Next message: Justin Starnes: "Re: Horizontal Scrollbar For Lisbox"
- Previous message: Robin Hammond: "Re: Horizontal Scrollbar For Lisbox"
- In reply to: Robin Hammond: "Re: Horizontal Scrollbar For Lisbox"
- Next in thread: Justin Starnes: "Re: Horizontal Scrollbar For Lisbox"
- Reply: Justin Starnes: "Re: Horizontal Scrollbar For Lisbox"
- Reply: Paul Robinson: "Re: Horizontal Scrollbar For Lisbox"
- Reply: Andy Pope: "Re: Horizontal Scrollbar For Lisbox"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|