Setting Default Value On Windows Form

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
 
L

lord.zoltar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top