Results 1 to 6 of 6

Thread: [2005] Data Tab Hlp Plz

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    [2005] Data Tab Hlp Plz

    Hi Peeps,

    Can someone tell me why I cannot see the oledbconnection and oledbdataset controls on my toolbar under data?

    Thanks in advance,

    Jiggy!

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Data Tab Hlp Plz

    Honestly, I don't think it is ever been in there, because its not really a toolbox component. They are almost always created via code.

    You can put it there though if you want. Just right click on "data" in the toolbox and select "choose items". When the dialog comes up, you will see a textbox where you can filter the list. Type "ole" to get a list of the OLEDB classes you can add to the toolbox. Check the desired ones and click OK.

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Data Tab Hlp Plz

    oh, and there is no such thing as oledbdataset, but I think I know what you meant

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: [2005] Data Tab Hlp Plz

    Thanks mate and your right I meant oledbDataAdapter, Doh!

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Data Tab Hlp Plz

    In VS.NET 2003 (and 2002 I'd guess) those components (yes, they do inherit the Component class) were included in the Toolbox by default. From VS 2005 onwards they are not, basically because you'd rarely use them at design time anymore. If you want to create design-time data access components then you'd normally use the Data Source Wizard to generate a typed DataSet that would include TableAdapters. The TableAdapters take the place of the DataAdapter and Connection objects and they are automatically added to the Toolbox after the wizard completes.

    If you don't want a typed DataSet then you'd normally not want to create your data access components in the designer. You can still create DataAdapters and Connections in code, just like any other objects. If you really do want to add a DataAdapter to a form in the designer then you can add the component to the toolbox manually, just as you can with any component.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: [2005] Data Tab Hlp Plz

    Cheers for that. I always do it in code but I am having a problem with component one truegrid so I wanted to go down this route.

    Cheers again for the explanation.

    Jiggy

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