Setting Default Value On Windows Form

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

I am upsizing an access application to vb.net. In access textbox, combos
and checkboxes can have default values, which are assigned in the properties
for the control. How can I set a control's default value in bound and non
bound forms? thanks
 
Will said:
I am upsizing an access application to vb.net. In access textbox, combos
and checkboxes can have default values, which are assigned in the properties
for the control. How can I set a control's default value in bound and non
bound forms? thanks

For a text box or check box, just set the Text property or the Checked
property. The data that is in there at design time can be the default
value. If there is code that puts values into the controls from a
datasource, it will just overwrite the design-time values.
 
Back
Top