Hi, pals -- Customizing ToolStripDropDownButton

30 views
Skip to first unread message

Paulo Alexandre Costa

unread,
Nov 16, 2009, 8:35:57 AM11/16/09
to DotNetDe...@googlegroups.com
Hey, guys

    There is something borrowing me. I was wondering if it is possible to customize the ToolStripDropDown, more espefically, the items showed when the ToolStripDropDownButton is clicked. What I woud like to do is remove that left vertical gray/blue column. As you well know, an image is worth a 1000 words, so please, if you're not so busy , give a glance here http://img4.imageshack.us/i/toolstripdropdownbutton.png/ . I searched a lot in google, codeproject etc, and the nearest I got was a suggestion to override the draw methods of the toolstripdropdownbutton items. I'm almost there! But I'm still no able to remove that vertical left column.  Any of you guys passed for a similar situation ?

Anyway, I thank you a lot for any help, any tip and for the time that you spent reading this email.


--
Paulo Alexandre Costa




Paulo Alexandre Costa

unread,
Nov 16, 2009, 8:50:47 AM11/16/09
to DotNetDe...@googlegroups.com
I forgot to say my real intention is to move the text to left. To remove the column, a simple solution, but no so cool, is to apply any color to each item (imagine if i have 1000 items....it would be a lot of 'mechanical' work.)

Thanks a lot , guys!
--
Paulo Alexandre Costa
Universidade Estadual do Ceará - UECE
Instituto Atlântico - Desenvolvedor
Linux User #464032
"A velocidade impressionante dos computadores é de utilidade limitada se os programas que neles rodam usam algoritmos ineficientes."


Arsalan Tamiz

unread,
Nov 17, 2009, 11:37:08 PM11/17/09
to dotnetde...@googlegroups.com
Use Drop Down item's Paint event. But before that you should have the knowledge of GDI+.

By the way nice drawing :)

Regards,
Arsalan Tamiz

Paulo Alexandre Costa

unread,
Nov 18, 2009, 7:37:33 AM11/18/09
to dotnetde...@googlegroups.com
Thank you,  Arsalan
I'll give a try and I'll give a return about my success/failure.
Good Wednesday!
Reply all
Reply to author
Forward
0 new messages