flippp2002 Posted October 5, 2003 Posted October 5, 2003 ok, I heard this can be done! How???? How do I can a progress bar to smooth, and for that matter with no borderstyle to boot. Quote
*Experts* Volte Posted October 5, 2003 *Experts* Posted October 5, 2003 If you derive your own control from ProgressBar, you can override the CreateParams property (i.e. don't set it, but override it) and modify them there. Quote
flippp2002 Posted October 5, 2003 Author Posted October 5, 2003 Yeah, I kinda figure that one out. I used a Usercontrol, but however I still could not change the progress bar to smooth, so I am still missing a key element here. So if someone does not mind to post an example of send me an example that would be very greatly appreciated... Quote
*Experts* Volte Posted October 5, 2003 *Experts* Posted October 5, 2003 I'm not even so sure that the .NET progress bar is the real Common Controls one, so the PBS_ styles may not even affect it. You'd probably just be better to write your own from scratch. It's dead easy anyway. A simply percentage calculation and one FillRectangle call should do it. Plus you could customize it however you wanted (add text, gradients, whatever). Quote
*Gurus* divil Posted October 6, 2003 *Gurus* Posted October 6, 2003 Unfortunately the ProgressBar class is sealed so you can't override CreateParams and implement this style. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.