protected override void OnUnsubscribeControlEvents(Control control) { base.OnUnsubscribeControlEvents(control); CustomTrackBar CutomTrackbar = control as CustomTrackBar; CutomTrackbar.ValueChanged -= new EventHandler(CutomTrackbar_ValueChanged); }
private static Control CreateControlInstance() { CustomTrackBar t = new CustomTrackBar(); t.AutoSize = false; // Add other initialization code here. return(t); }