Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
360
Multiply today button appearing on a inherited ultracalandarcombo control
posted

Hello,

I've created a usercontrol which inherits form then ultracalandarcombo control.  The problem I'm having is the today button on the calander dropdrop is being duplicated (seems like everytime i open mt text form it creates a new button..  When I first create the control the InitializeComponent() method contains 1 line of code.

components = new System.ComponentModel.Container();

As I continue to on other controls the code gets changed by the designer to  

private void InitializeComponent()

{

Infragistics.Win.UltraWinSchedule.CalendarCombo.
DateButton dateButton1 = new Infragistics.Win.UltraWinSchedule.CalendarCombo.DateButton();

((System.ComponentModel.ISupportInitialize)(this)).BeginInit();

this.SuspendLayout();

//

// GTSDatePicker

//

this.DateButtons.Add(dateButton1);

((System.ComponentModel.ISupportInitialize)(this)).EndInit();

this.ResumeLayout(false);

}

 

Is there  a way to make this stop happening?  Maybe I'm doing something wrong....

 

 

John

 

Parents
No Data
Reply Children
No Data