Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Textbox not posting TextChanged event Collapse All
Subject Author Date
Brian Adams Feb 24, 2009 - 11:44 AM

Given the code below, if Form2 has an Elegant.Ui.TextBox the TextBox will fail to fire the TextChanged event after the instance of Form2 has closed the first time.


 



public partial class Form1 : Form

{

    Form2 frm = new Form2();

   

    public Form1()

    {

        InitializeComponent();

    }


    private void button1_Click(object sender, EventArgs e)

    {

        frm.ShowDialog();

    }

   

    protected override void Dispose(bool disposing)

    {

        if (disposing && (components != null))

        {

            components.Dispose();

        }

        base.Dispose(disposing);

    }

   

    private void InitializeComponent()

    {

        this.button1 = new System.Windows.Forms.Button();

        this.SuspendLayout();

        //

        // button1

        //

        this.button1.Location = new System.Drawing.Point(0, 0);

        this.button1.Name = "button1";

        this.button1.Size = new System.Drawing.Size(75, 23);

        this.button1.TabIndex = 0;

        this.button1.Text = "button1";

        this.button1.UseVisualStyleBackColor = true;

        this.button1.Click += new System.EventHandler(this.button1_Click);

        //

        // Form1

        //

        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

        this.ClientSize = new System.Drawing.Size(292, 273);

        this.Controls.Add(this.button1);

        this.Name = "Form1";

        this.Text = "Form1";

        this.ResumeLayout(false);

    }

   

    private System.ComponentModel.IContainer components = null;

    private System.Windows.Forms.Button button1;

}


public partial class Form2 : Form

{

    public Form2()

    {

        InitializeComponent();

    }


    private void textBox1_TextChanged(object sender, EventArgs e)

    {

        MessageBox.Show(textBox1.Text);

    }


    protected override void Dispose(bool disposing)

    {

        if (disposing && (components != null))

        {

            components.Dispose();

        }

        base.Dispose(disposing);

    }


    private void InitializeComponent()

  {

      this.textBox1 = new Elegant.Ui.TextBox();

      this.SuspendLayout();

      //

      // textBox1

      //

      this.textBox1.Id = "f52cc16e-3c3a-41ee-836a-28b7df7f96fd";

      this.textBox1.LabelText = "";

      this.textBox1.Location = new System.Drawing.Point(10, 9);

      this.textBox1.Name = "textBox1";

      this.textBox1.Size = new System.Drawing.Size(75, 21);

      this.textBox1.TabIndex = 0;

      this.textBox1.Text = "textBox1";

      this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);

      //

      // Form2

      //

      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

      this.ClientSize = new System.Drawing.Size(292, 273);

      this.Controls.Add(this.textBox1);

      this.Name = "Form2";

      this.Text = "Form2";

      this.ResumeLayout(false);

  }

  

  private System.ComponentModel.IContainer components = null;

  private Elegant.Ui.TextBox textBox1;

}



 


Brian Adams Feb 26, 2009 - 9:03 AM

Actually I would very much like the fix now.  It’s causing us a bit of heartache and we are going to have to change architecture of a bunch of screens to destroy and re-create windows if we don’t get it.  What do I need to do to get the fix?

Technical Support Feb 25, 2009 - 1:25 PM

Thank you for the bug report. The fix will be available in the next release. We can also send you a bug fix later this week (on your request).

Brian Adams Feb 26, 2009 - 9:04 AM

Actually I would very much like the fix now.  It’s causing us a bit of heartache and we are going to have to change architecture of a bunch of screens to destroy and re-create windows if we don’t get it.  What do I need to do to get the fix?

Technical Support Feb 26, 2009 - 9:12 AM

Please send a request to support@prof-uis.com so we can provide you with a download link. Please note your should have a valid subscription.