VB6 to VB.NET transition

Hey guys,

I am trying to switch from VB6 to VB.net (Visual Studio 2010 Pro).  I need to query and display results from SyBase SQL Anywhere 10.

In VB6 I used to use ADODC and DataGrid, this would work fine. Simple example:

In ADODC1's Properties I would specify the SyBase ODBC and login credentials

For DataGrid1's DataSource I  would set ADODC1

Button1 Click
ADODC1.RecordSource = "select * from table where x = 1 and y = 2"

I cant seem to figure out how to do this simple task in VB.NET.....Help?
Who is Participating?
ArkConnect With a Mentor Commented:
Add a DataGridView on your form. Click intellisence link (small right arrow in the upper right corner). Expand Choose Data Source combo -> click Add project data source. Select database -> dataset and specify connection.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.