M
moondaddy
(this is a re-post as I'm now posting via my new msdn alias)
I'm going to create a binding object and bind the format event to a control.
I wanted to be able to re-use the binding object again for other controls,
or do I need to create a new binding object for each contorl? This is a
small example:
Dim bnd As Binding = txtBirthDate.DataBindings("Text")
AddHandler bnd.Format, AddressOf DataFormat
can I use bnd for other controls like:
txtDate2
and
txtDate3?
or will i need to create a binding object for each control like this:
Dim bnd2 As Binding = txtDate2.DataBindings("Text")
AddHandler bnd2.Format, AddressOf DataFormat
Dim bnd3 As Binding = txtDate3.DataBindings("Text")
AddHandler bnd3.Format, AddressOf DataFormat
Thanks.
I'm going to create a binding object and bind the format event to a control.
I wanted to be able to re-use the binding object again for other controls,
or do I need to create a new binding object for each contorl? This is a
small example:
Dim bnd As Binding = txtBirthDate.DataBindings("Text")
AddHandler bnd.Format, AddressOf DataFormat
can I use bnd for other controls like:
txtDate2
and
txtDate3?
or will i need to create a binding object for each control like this:
Dim bnd2 As Binding = txtDate2.DataBindings("Text")
AddHandler bnd2.Format, AddressOf DataFormat
Dim bnd3 As Binding = txtDate3.DataBindings("Text")
AddHandler bnd3.Format, AddressOf DataFormat
Thanks.