Solved

Quick conversion of Visual Basic 6 code to Visual Studio 2013 VB.Net code

Posted on 2015-01-17
2
309 Views
Last Modified: 2015-01-18
I'm just doing a quick conversion of an old Visual Basic 6 program to Visual Studio 2013 VB.Net code.

In the Visual Basic 6 Code I have:
  1)  Two Datasets on a Form called Data1 and Data2.
  2)  Two Global Variables referencepath$ and trackpath$.  Referencepath$ = "h:\profiles\refdata" and
schedulesfile$ = "h:\profiles\track".
  3)  VB6 code snippet

   refdatafile$ = referencepath$ & "\profiles.mdb"
   schedulesfile$ = trackpath$ & "\schedules.mdb"
   Data1.DatabaseName = schedulesfile$
   Data1.RecordSource = "schedules"
   Data1.Refresh
   Data2.DatabaseName = refdatafile$
   Data2.RecordSource = "select * from modules"
   Data2.Refresh

How do I do the same thing in Visual Studio 2013 VB.Net code?

Thanks!
0
Comment
Question by:AndrewBanfer
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 40556143
0
 

Author Closing Comment

by:AndrewBanfer
ID: 40556154
Thank you!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now