.net - How to customize the controlbox of a winform in c# -


i want customize controlbox of winform different background , different button images. how can so? there way make custom controlbox usercontrol or , add winform?

you can create own custom controls inheriting usercontrol so

class mycontrol : system.windows.forms.button //this have been system.windows.forms.usercontrol or other existing control type template {     protected override void onpaint(system.windows.forms.painteventargs e)     {         //paint whatever wish on buttons graphics using e.graphics     } } 

there lot programming custom controls. answer here. reference is: http://msdn.microsoft.com/en-us/library/6hws6h2t.aspx

you create own sort of forms control , hide parents controlbox. or maybe can inherit system.windows.form , createa custom form. have never tried myself.

and using onpaint have keep rules in mind if care performance and/or flickering , such: what right way use onpaint in .net applications?


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -