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
515
UltraComboEditor not retaining initial text value
posted

We are porting an application from Infra 6.3 to 8.2

The following code snippet illustrates a problem we are having with the UltraComboEditor.

When run under 6.3, the editor displays text="Howdy"; under 8.2 text is blank. If the first item in the list is not blank, then it works fine under both releases.

I would like it to behave like 6.3. I realize that putting uce.Text="Howdy" after Show() has been called will work, but is not possible in our situation.

Any help/explanation will be appreciated.

Thanks

private void Form1_Load(object sender,EventArgs e)
{
 uce.Items.Add("");
 uce.Items.Add("A");
 uce.Text = "Howdy";
}


private void InitializeComponent()
{
 Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
 this.uce = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
 ((System.ComponentModel.ISupportInitialize)(this.uce)).BeginInit();
 this.SuspendLayout();
 //
 // uce
 //
 this.uce.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
 appearance1.BackColor = System.Drawing.Color.WhiteSmoke;
 this.uce.Appearance = appearance1;
 this.uce.Location = new System.Drawing.Point(32,77);
 this.uce.Name = "uce";
 this.uce.Size = new System.Drawing.Size(144,17);
 this.uce.TabIndex = 1;
 this.uce.TabStop = false;
 this.uce.UseOsThemes = Infragistics.Win.DefaultableBoolean.False;
 //
 // Form1
 //
 this.AutoScaleDimensions = new System.Drawing.SizeF(6F,13F);
 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 this.ClientSize = new System.Drawing.Size(284,264);
 this.Controls.Add(this.uce);
 this.Name = "Form1";
 this.Text = "Form1";
 this.Load += new System.EventHandler(this.Form1_Load);
 ((System.ComponentModel.ISupportInitialize)(this.uce)).EndInit();
 this.ResumeLayout(false);
 this.PerformLayout();
}

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I tested this out in the latest Hot Fix of v8.2 and it works fine for me. When I run the app, the UltraComboEditor displays "Howdy". So you probably just need to get the latest Hot Fix. 

Reply Children
No Data