Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 2nd, 2005, 03:08 PM
Authorized User
 
Join Date: Nov 2005
Location: , , .
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 > >|

Reply With Quote
  #2 (permalink)  
Old December 3rd, 2005, 09:57 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
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
Reply With Quote
  #3 (permalink)  
Old December 5th, 2005, 02:11 AM
Authorized User
 
Join Date: Nov 2005
Location: , , .
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.

Reply With Quote
  #4 (permalink)  
Old December 6th, 2005, 09:38 PM
Authorized User
 
Join Date: Nov 2005
Location: , , .
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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 07:50 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.