Well, for the degrades, I could do it with a background picture, although you can use GDI+ do create gradients. Am sure you can find some good examples in www.c-sharpcorner.com or even in MSDN help guide...
Dude... you keep reading... read some deep knowledge base about GDI+ then put your fingers to work!
Beleave me that everything you see have to be drawn, in this case with GDI+.
After you really get conscience of this, you have 2 options:
1- Try to ownerdraw the .net toolbar.
2- Build your own toolbar control from scratch.
You choose... the only thing you really have to learn is how to draw!
Hmm, the VB Power Pack looks interesting.. I don't suppose anyone actually has a copy they could send through to me - the GotDotNet workspaces are down (again) so I can't even download the damn things.
I know how to draw Alex, but you see drawing the toolbar in some bits isnt exactly just drawing, the gradient isnt drawing its taken from the visual style if u realized.
Only controls that support visual styles (from the base OS) will sync the draw with the environment...
You can see, if you EnableVisualStyles for a sample application, that the look a ToolBar control gets from visual styles is way far from what you need...
So, I keep my way... there's only one way for you to do that... ownerdraw the toolbar control.
You can even detect what OS the application is running on, and display it different ways... Allways... drawing... sorry!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.