ListBox question anyone can answer

  • Thread starter Thread starter Scatropolis
  • Start date Start date
S

Scatropolis

Hi, I've looked but find what I'm looking for.

I'm trying to resize a ListBox to the smallest size but still have all the
items showing. kinda like a ContextMenu. I've looked and even tried
figuring it out manually, but haven't had a success. Thanks
 
Hi,
You have to calculate how big is each item and then make the listbox that
big ( or maybe a little bigger ) You can get the size of each item using
Graphics.MeasureString

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top