Hi,
i am pretty new in developping with vb.net. I created a user control with a
textbox control. I want to have the possibility to set a new
TextDataBinding s property which is in fact the DataBindings property of the
textbox. I can choose a datasource and a datamember, but it isn't saved.
When I start the application or restart vs, the settings is None. What do I
do wrong?
Public Property TextDataBinding s() As
System.Windows. Forms.ControlBi ndingsCollectio n
Get
Return (Me.txtPKS.Data Bindings)
End Get
Set(ByVal Value As
System.Windows. Forms.ControlBi ndingsCollectio n)
Dim dbBinding As System.Windows. Forms.Binding
Me.txtPKS.DataB indings.Clear()
For Each dbBinding In Value
Me.txtPKS.DataB indings.Add(dbB inding)
Next
End Set
End Property
Many thanks in advance
Stephan
i am pretty new in developping with vb.net. I created a user control with a
textbox control. I want to have the possibility to set a new
TextDataBinding s property which is in fact the DataBindings property of the
textbox. I can choose a datasource and a datamember, but it isn't saved.
When I start the application or restart vs, the settings is None. What do I
do wrong?
Public Property TextDataBinding s() As
System.Windows. Forms.ControlBi ndingsCollectio n
Get
Return (Me.txtPKS.Data Bindings)
End Get
Set(ByVal Value As
System.Windows. Forms.ControlBi ndingsCollectio n)
Dim dbBinding As System.Windows. Forms.Binding
Me.txtPKS.DataB indings.Clear()
For Each dbBinding In Value
Me.txtPKS.DataB indings.Add(dbB inding)
Next
End Set
End Property
Many thanks in advance
Stephan