By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

set itemheight in listbox

P: n/a
Hello,

I am trying to increase the itemheight in listbox so that it is easier
for user to touch the item. Is it possible to do that while I set
DrawMode=Normal? Do I have to set DrawMode to OwnerDraw in order to do
any change? Any one got an idea?

Thanks
Leanne

Nov 6 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi leane,

Why do you not just try that?

Cor

"Leanne" <le******@connectretail.com.auschreef in bericht
news:11**********************@k70g2000cwa.googlegr oups.com...
Hello,

I am trying to increase the itemheight in listbox so that it is easier
for user to touch the item. Is it possible to do that while I set
DrawMode=Normal? Do I have to set DrawMode to OwnerDraw in order to do
any change? Any one got an idea?

Thanks
Leanne

Nov 6 '06 #2

P: n/a
Hi Cor,
I tried. I set Drawmode=Normal and then set ItemHeight=20, but that did
not work.

Leanne

Cor Ligthert [MVP] wrote:
Hi leane,

Why do you not just try that?

Cor

"Leanne" <le******@connectretail.com.auschreef in bericht
news:11**********************@k70g2000cwa.googlegr oups.com...
Hello,

I am trying to increase the itemheight in listbox so that it is easier
for user to touch the item. Is it possible to do that while I set
DrawMode=Normal? Do I have to set DrawMode to OwnerDraw in order to do
any change? Any one got an idea?

Thanks
Leanne
Nov 6 '06 #3

P: n/a
You can use OwnerDraw mode and respond to the MeasureItem event, setting
its e.Height property as needed. You will also need to implement the DrawItem
event handler. The Visual Studio online help for ListBox.MeasureItem Event
includes a sample for this event that should meet your needs for a basic
text list item.

You can also increase the font size of the control, and the item height will
increase automatically.

-----
Tim Patrick
Start-to-Finish Visual Basic 2005
Hello,

I am trying to increase the itemheight in listbox so that it is easier
for user to touch the item. Is it possible to do that while I set
DrawMode=Normal? Do I have to set DrawMode to OwnerDraw in order to do
any change? Any one got an idea?

Thanks
Leanne

Nov 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.