G
Guest
I created a DataSource for a Web Service.
Then drag&Drop the text boxes for the return values onto the forms designer.
BindingSource is created everything OK.
Then I want to format the output of one of the text boxes.
Here is my VB.NET code to wire up an event handler:
'get the Binding object for this textbox and setup the event
handler:
Dim bind1 As Binding
bind1 = TitleTextBox.DataBindings.Item(0)
AddHandler bind1.Format, AddressOf OnTitleTextBoxFormat
The event handler is not called the first time when displaying a value of
the datasource. It works fine the 2nd, 3rd ... times, just the initial
display is wrong.
Imho the Format event should be fired too when the control gets an initial
output.
What would be the correct event to wire up?
thanks herbert
Then drag&Drop the text boxes for the return values onto the forms designer.
BindingSource is created everything OK.
Then I want to format the output of one of the text boxes.
Here is my VB.NET code to wire up an event handler:
'get the Binding object for this textbox and setup the event
handler:
Dim bind1 As Binding
bind1 = TitleTextBox.DataBindings.Item(0)
AddHandler bind1.Format, AddressOf OnTitleTextBoxFormat
The event handler is not called the first time when displaying a value of
the datasource. It works fine the 2nd, 3rd ... times, just the initial
display is wrong.
Imho the Format event should be fired too when the control gets an initial
output.
What would be the correct event to wire up?
thanks herbert