This is the exception that I’m getting when I’m trying to bind to a System.Type.Name.
Here is what I’m doing:
this.propertyTypeBindingSource.DataSource = typeof(System.Type); /* snip */ this.nameTextBox1.DataBindings.Add( new System.Windows.Forms.Binding( 'Text', this.propertyTypeBindingSource, 'Name', true));
Is there some trick with binding to System.Type, is it not allowed or is there any workaround? Have no problems with binding to other types.
Found a workaround. Made a class
created a binding source
created an instance of the class and bound the textbox to it.
works exactly as required.