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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs