|
-
Apr 2nd, 2002, 05:37 PM
#1
Thread Starter
Addicted Member
textbox data binding
I'm sure this is a simple question but how do you bind textboxes to field in a database. I had a VB6 project in which I had some textboxes bound to an ADO data control. I 'upgraded' (ha) my project to VB.Net and now don't know how to bind them to the data control again, or even if I can. I just want them to display fields in an Access database and let the user navigate the records. Thanks.
-
Apr 2nd, 2002, 05:45 PM
#2
Frenzied Member
Click on the text box, on the properties box, go to dataBindings.
Dont gain the world and lose your soul
-
Apr 2nd, 2002, 05:50 PM
#3
Thread Starter
Addicted Member
I have tried that. When I try and bind the text field nothing comes up. When I click on the dropdown menu under databindings the only thing that shows up is 'None'.
-
Apr 3rd, 2002, 03:39 AM
#4
Hyperactive Member
I think you can only do it programmaticcally using the binding manager and seeting the binding name of the control (your text box) to the data you want to bind it to, I had to do a similar thing only I was still using a datagrid and needed to create my own table style and use the datagridtextbox which inherits from text box, initially try searcging the help using the keywords currency manager and binding names and that will probably point you to where you want to go, also I am sure that one of the wakthroughs covers binding to a text box - good luck!
-
Apr 3rd, 2002, 09:46 AM
#5
Addicted Member
do you have a dataset in your project?
to use the databinding properties in the form designer you need a dataset. If you just have the oledbdataadapter right click on it and there will be a menu option that says generate dataset.
just follow the wizards steps then after the dataset is created go to the datbinding properties of the text box
 ender_pete 
C#,VS.NET Ent Arch, vb6 ee sp5,html,vbscript,jscript,
xml,dhtml,delphi,c++,vc++,java,cgi,php, python, ada(so ancient) ,adasage(also ancient) and others i can't remember.....
-
Apr 3rd, 2002, 12:06 PM
#6
Thread Starter
Addicted Member
Thanks everybody. I am pretty familiar with VB6 but I just installed .Net yesterday and was getting frustrated. I will try your suggestions as soon as I get up and running ... I had to format and reinstall everything. Stupid virus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|