|
-
Jul 4th, 2002, 06:04 PM
#1
Thread Starter
Junior Member
Binding Text Box to data source?
I just upgraded from VB6 to VB.NET, and so far I really like VB.NET except I'm either blind and don't see it or what... Yes I am new to VB, I started maybe 4 months ago, and about a week ago finally got me a copy of VB.NET...
I had programmed a very a simple CRM that used Text Box's to display the records. I wanted to re-write the program in .Net to get the feel for .Net But I can't figure out how to assign a datasource and field to a text box in VB6 it was simple, in the properties field I simply selected the source and field...
Thanks for any help!
-
Jul 6th, 2002, 01:08 AM
#2
Thread Starter
Junior Member
-
Jul 6th, 2002, 07:23 AM
#3
Frenzied Member
Did you check the documentation? or MSDN?
-
Jul 6th, 2002, 11:30 AM
#4
Addicted Member
textBox.DataBindings.Add("Text", custList, "CustomerID")
where text is the property of the control, custlist is the datatable and CustomerID is the column.
There is an example on simple binding in the .net framework SDK , sample and quickstarts. This should be your starting point.
Goodluck
-
Jul 6th, 2002, 01:36 PM
#5
Thread Starter
Junior Member
Thanks for the help, I'll give that a go when I get some time... I haven't really done to much looking through the documentation. Been on the go quite a bit, and I'm still waiting for my 2nd license so I can install VS.NET on my notebook instead of using remote desktop over a dial up connection.
-
Jul 8th, 2002, 04:46 PM
#6
Lively Member
Like I said earlier, try using the visual data tools at first because then you can look at the underlying code when you expand the code. I used the visual tools to start off and thought they were pretty easy to use.
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
|