[Mono-bugs] [Bug 74167][Wis] New - Simple databinding does not work
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 29 Mar 2005 03:31:37 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jordi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74167
--- shadow/74167 2005-03-29 03:31:37.000000000 -0500
+++ shadow/74167.tmp.30104 2005-03-29 03:31:37.000000000 -0500
@@ -0,0 +1,79 @@
+Bug#: 74167
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Any
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: jackson@ximian.com
+ReportedBy: jordi@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Simple databinding does not work
+
+Simple DataBinding does not work.
+
+Try running this sample that run fines in Microsoft .Net
+
+
+;-------------------------------------------------------------
+
+using System.Windows.Forms;
+using System.Drawing;
+using System;
+
+namespace MyFormProject
+{
+
+
+ class MainForm : System.Windows.Forms.Form
+ {
+ private TextBox txtbox = new TextBox ();
+
+ public MainForm ()
+ {
+ txtbox.Location = new Point (10,10);
+ Controls.Add (txtbox);
+
+ Binding binding_txt = new Binding ("Text", "Hola", null);
+ txtbox.DataBindings.Add (binding_txt);
+ }
+
+ public static void Main(string[] args)
+ {
+ Application.Run (new MainForm ());
+ }
+ }
+
+}
+
+;-------------------------------------------------------------
+It produces the following error:
+
+$ mono swf-databinding-simple.exe
+Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15 5:56:12]
+
+Unhandled Exception: System.ArgumentException: Property does not exist
+in <0x000b0> System.Windows.Forms.PropertyManager:.ctor (object,string)
+in <0x001c8> System.Windows.Forms.BindingContext:CreateBindingManager
+(object,st
+ring)
+in <0x00017> System.Windows.Forms.BindingContext:AddManager (object,string)
+in <0x00059> System.Windows.Forms.BindingContext:get_Item (object,string)
+in <0x00035> System.Windows.Forms.Binding:Check
+(System.Windows.Forms.BindingCon
+text)
+in <0x00076> System.Windows.Forms.Control:CheckDataBindings ()
+in <0x00011> System.Windows.Forms.Control:OnBindingContextChanged
+(System.EventA
+rgs)
+in <0x00059> System.Windows.Forms.Control:OnParentBindingContextChanged
+(System.
+EventArgs)
+in <0x0004e> System.Windows.Forms.Control:OnBindingContextChanged
+(System.EventA