473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ListBox OwnerDrawVariable

Max
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.

Oct 31 '05 #1
2 3147
Did you set the HorizontalScrollbar property to true?

"Max" wrote:
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.

Nov 1 '05 #2
Max

Yes, I did and it's not working which is weird because the vertical bar becomes visible when there is a lot of text, but not the
horizontal bar. I use the example at:

http://msdn.microsoft.com/library/de...eitemtopic.asp

"Siva M" <sh******@online.excite.com> wrote in message news:68**********************************@microsof t.com...
Did you set the HorizontalScrollbar property to true?

"Max" wrote:
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each
entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.


Nov 1 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Patty O'Dors | last post by:
Hi I have some code to create an ownerdrawn listbox (derived), and when I add an item to it, the bold text of the first item (the title, 'Collections and Maturities') mysteriously seems to get...
0
by: Max | last post by:
Hello, I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry. The problem I have is that the horizontal scroll bar is not...
0
by: e | last post by:
My goal is to create a "WindowsXP add/remove programs"-style listbox, where the selected item is bigger (taller) than the others, and displays different content when selected. When the listbox's...
9
by: Larry Serflaten | last post by:
I'm drawing my own inherited listbox, and I don't want the user to select any items, but I do want to allow them to scroll the listbox. When they click on an item, there is a flicker of the...
2
by: Max | last post by:
Hello, I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry. The problem I have is that the horizontal scroll bar is not...
4
by: the_mikado | last post by:
Hi, If this has been answered before I am sorry, but I want to wordwrap the items in a listbox so I dont have to use the horizontal scroll bar. Is this possible? if so how can it be done? ...
2
by: Paul_Madden via DotNetMonster.com | last post by:
I am handling the Listbox DrawItem event to enable the listbox strings to be displayed in different colours for easy reading. Have set ScrollAlwaysVisible and HorizontalScrollbar to true. I...
0
by: kiran.inbng | last post by:
Hi All, Iam trying to create a listbox with buttons/tree control as items in a listbox(ownerdrawvariable) and iam having some problems.Below are my questions, 1.Is there a equivavalent of...
0
by: active | last post by:
I created Public Class MyListBox Inherits System.Windows.Forms.ListBox .... and do Public Sub New()
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.