Why the argument of DataBindings("Text") is Text? vb.net
Posted on 2014-09-27
There is a procedure FormatPhoneNumber(...) which is hooked to the Format event of a PhoneTextBox using:
Dim b as Binding = PhoneTextBox.DataBindings("Text")
AddHandler b.Format, AddressOf FormatPhoneNumber
Q1: Why the argument of DataBindings("Text") is Text?
What is another argument choice beside "Text" argument in Q1? Can you please build and example using it to illustrate its function?
Q2: How can I add the same event to FaxTextBox?
Q3: What are some alternate ways of writing the above 2 lines of code? I was expecting to see .Add in this code example but there is none.