Results 1 to 6 of 6

Thread: Binding Text Box to data source?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2002
    Posts
    18

    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!

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jul 2002
    Posts
    18
    Nobody?

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Did you check the documentation? or MSDN?

  4. #4
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251
    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

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jul 2002
    Posts
    18
    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.

  6. #6
    Lively Member
    Join Date
    Mar 2002
    Location
    WestCoast - Cali
    Posts
    116
    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
  •  



Click Here to Expand Forum to Full Width