Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So first of all, Hello. My problem is that i have a table with names and money, and i want to pick information from the names to some checkboxes in another form. I can't discover what's the code. Can you help me?
Posted
Comments
ali_heidari_ 3-Mar-13 5:08am    
you have 2 forms, with the first wanna connect with database, and show resault in second form?
Maciej Los 3-Mar-13 5:38am    
WinForms, UI WebControls?
RDBurmon 3-Mar-13 6:18am    
Can you add some live example ?

1 solution

WinForms

Steps to do:
1) place checkbox on the form
2) when checkbox is selected, go to the Properties window (bottom-right corner)
3) expand property (DataBindings) and go to (Advanced) property
4) when cursor is in (Advanced) property, you should see [...] button, click it to call Formatting and Advanced Binding window
5) find Binding combobox and expand it
6) choose Add project data source and follow the steps of Data Source Configuration Wizard.
7) bind data to your data source and push OK button
8) after all, you'll see 3 objects: DataSet, BindingSource and TableAdapter

Now you know how to do it manually. Do the same in code ;)

That's all!
 
Share this answer
 
Comments
Pedro Perpétua 6-Mar-13 10:55am    
I did that but how do I configure for this?

Name/Money
EX:Test/0.0 <-----Table
EX:Test2/0.0

Then in checbox1 I want the first name (so when i debugg, it will be test) and the checkbox2 will have the 2nd name (Test2)

Sorry for my bad english

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900