Results 1 to 9 of 9

Thread: [RESOLVED] Control Name

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    110

    Resolved [RESOLVED] Control Name

    What is the name that I will see in Visual Basic components for connecting to a database (MySQL) ADODB or something, I can find ADODC.

  2. #2
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Control Name

    Quote Originally Posted by INV-Predator
    What is the name that I will see in Visual Basic components for connecting to a database (MySQL) ADODB or something, I can find ADODC.
    Add a reference (project > references) for Microsoft ActiveX Data Objects 2.0

  3. #3
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Control Name

    then you can use ADO through code to connect to the MySQL DB. many threads on the forum for this. i would recommend you do not bind controls to a database because this is evil and can cause many problems later down the road.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    110

    Re: Control Name

    The how do you propose that i connect to my database.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    110

    Re: Control Name

    Btw BrailleSchool, that is not what i want to do.

    I need to use the DB to import data at certain times.
    -Runtime (Load Registered Channels [which are managed by a class] and load their info)
    -NewUser (Authentification, Ban List Check)
    -UserInfoChange (Update)

    Just to name a few.

    So what is the control that just let's you connect to a database, then read and write data?

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Control Name

    ADO is the way to go. What BrailleSchool was talking about was bound controls. That is when you use a data control to connect to a database and then use other controls (like textboxes) and bind them to the data control so they will automatically display a field from the database.

    I wouldn't call bound controls for "evil" but it's usually better to write the display code yourself especially if you want to do something more then simply displaying simple data.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    110

    Re: Control Name

    So what is the control i use for that (name)?

  8. #8
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    Re: Control Name

    adodc control microsoft ado data control can be used to connect to that database

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Control Name

    But beware that you have been adviced against using that with bound controls

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