コード例 #1
0
        protected override void OnUnsubscribeControlEvents(Control control)
        {
            base.OnUnsubscribeControlEvents(control);
            CustomTrackBar CutomTrackbar = control as CustomTrackBar;

            CutomTrackbar.ValueChanged -= new EventHandler(CutomTrackbar_ValueChanged);
        }
コード例 #2
0
        private static Control CreateControlInstance()
        {
            CustomTrackBar t = new CustomTrackBar();

            t.AutoSize = false;
            // Add other initialization code here.
            return(t);
        }