[Mono-bugs] [Bug 347778] New: Binding: entered data not stored in property

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 11 15:08:34 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=347778


           Summary: Binding: entered data not stored in property
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at ximian.com
          Found By: ---


To reproduce:

1. Enter some data to textbox
2. Close form

Observed: empty messagebox

Environment:

1.2.6 preview 2
NET 2 profile
System.Drawing & Configuration from Nov 24, 2007 monocharge
Windows XP
VCSE 2008


Code to reproduce:


using System;
using System.Windows.Forms;

class Test {
    static void Main() {
        Application.Run(new Form1());
    }

}

class Form1 : Form {
    Customer c = new Customer();

    public Form1() {

        TextBox dtp = new TextBox();
        Binding b = new Binding("Text", c, "Date");
        dtp.DataBindings.Add(b);
        Controls.Add(dtp);
    }

    protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
{
        MessageBox.Show(c.Date);
        base.OnClosing(e);
    }
}

class Customer {
    public string Date { get; set; }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list