c# - How to refresh a winform custom control at design time after changing a property -


let's create custom control embed trackbar. create orientation property custom control. when drop custom control on form default horizontal. set vertical, trackbar should refresh vertical @ design time.

how ?

i think should call refresh() after changing value:

public orientationproperty direction {         {         return _direction;     }     set     {         _direction = value;         if (designmode)         {             parent.refresh(); // refreshes client area of parent control         }     } } private orientationproperty _direction; 

Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -