View Single Post
  #2 (permalink)  
Old March 20th, 2006, 02:40 PM
Bob Bedell Bob Bedell is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Its because DataBindings is a public property of a .NET Control class that returns a ControlBindingsCollection that contains the Binding objects for the control.

A Double structure is simply a base data type. It doesn't have a DataBindings property.

The only variable you could add a Binding object to would be a control object variable for a control that inherits from the Control class, like System.Windows.Forms.TextBox:

e.g.,

Dim myTextBox As New System.Windows.Forms.TextBox
myTextBox.DataBindings.Add("Text", myDv, "Factor")

HTH,

Bob

Reply With Quote