Yes another question about databindings.
All my controls are have databindings and works fine for navigating, adding,
deleting etc.
What I want is when I create a New record have those fields pre-fill with
some value stored in my user.setting so the user doesn't have to re-type
evrything all the time.
Should be so straight forward that I don't get it! The fields are not
getting populated with those values.
What is wrong with this code or method that I'm using?
Private Sub TenantsBindingS ource_AddingNew (ByVal sender As Object, ByVal e
As System.Componen tModel.AddingNe wEventArgs) Handles
TenantsBindingS ource.AddingNew
Me.txt_Address. Text = My.Settings.Add ress
Me.txt_BasicPri ce.Value = My.Settings.Bas icPrice
Me.txt_City.Tex t = My.Settings.Cit y
Me.txt_Country. Text = My.Settings.Cou ntry
Me.txt_PostalCo de.Value = My.Settings.Pos talCode
Me.txt_Province .Text = My.Settings.Pro vince
Me.txt_Suite.Te xt = My.Settings.Sui te
End Sub
Thanks for the help
All my controls are have databindings and works fine for navigating, adding,
deleting etc.
What I want is when I create a New record have those fields pre-fill with
some value stored in my user.setting so the user doesn't have to re-type
evrything all the time.
Should be so straight forward that I don't get it! The fields are not
getting populated with those values.
What is wrong with this code or method that I'm using?
Private Sub TenantsBindingS ource_AddingNew (ByVal sender As Object, ByVal e
As System.Componen tModel.AddingNe wEventArgs) Handles
TenantsBindingS ource.AddingNew
Me.txt_Address. Text = My.Settings.Add ress
Me.txt_BasicPri ce.Value = My.Settings.Bas icPrice
Me.txt_City.Tex t = My.Settings.Cit y
Me.txt_Country. Text = My.Settings.Cou ntry
Me.txt_PostalCo de.Value = My.Settings.Pos talCode
Me.txt_Province .Text = My.Settings.Pro vince
Me.txt_Suite.Te xt = My.Settings.Sui te
End Sub
Thanks for the help
Comment