Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2005, 04:08 PM
Authorized User
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO Data Control

I am looking in my VB.NET book and I don't see anything about the ADO data control that was in my VB6 book. Anyone know how I get this functionality? I am connecting to an Access database. This is basically the control that tells you what record you are on and has two buttons on each side; press the far left button to get the very first record, press the next button to scroll back by one, the next on scrolls forwards by one, and the one to the far right takes you to the very last record. Like this picture if you were on record 16...
|< < 16 > >|

 
Old December 3rd, 2005, 10:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

That's because ADO from VB6 has been replaced with ADO.NET in .NET. ADO.NET doesn't contain UI controls. It contains all the stuff you need to get at data. Based on the application you are building (winform, webform, console app, windows service) you have to set up the controls based on that application's UI namespace (System.Windows.Forms, System.Web.UI, etc).

-Peter
 
Old December 5th, 2005, 03:11 AM
Authorized User
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can get to the data, but I don't know how to access multiple records. I'm doing a winform and want to have text boxes that display my data then the user can search the database by filling in any of the text boxes and hitting the search button. But how do I access multiple data records if the query brings up more than one...? I'm lost.

 
Old December 6th, 2005, 10:38 PM
Authorized User
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's nice...just work it like a 2D array after getting the dataset filled. Made my own buttons for add, delete, update, next, previous, showall, clear and find. Who needs the ADO controls...hehe.:D






Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO Data Control kf4rrm VB Databases Basics 2 April 5th, 2005 11:58 AM
ADO Data Control jwilkerson VB Databases Basics 1 September 29th, 2004 10:53 AM
pls hlp!!! Microsoft ADO Data Control not found x2c4u VB Databases Basics 3 September 29th, 2004 09:42 AM
ADO Data Control jwilkerson Beginning VB 6 1 October 21st, 2003 06:30 AM
ADO Data Control fordrs3 Beginning VB 6 3 June 17th, 2003 04:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.