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
Post a Comment