Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

Issues Running a VB6 app in Windows 7

$
0
0
0Hi,

Not sure if there has ever been a definitive answer for this issue, but I'm having a issue with getting datagrids to work in VB6 on a Windows 7 PC with SP1. The application is currently working with no issues on Windows Xp.

When trying to populate the datagrid it comes up with a cannot databind error. I'm using a ADODB connection/recordset to populate the datagrid.

Anyone know how I can resolve this?

this is my code:

'update the form with the values
With Me.DataGrid1
Set .DataSource = SQLrst
.Visible = True
.Columns(1).Width = 950
.Columns(2).Width = 1050
.Columns(3).Width = 1800
.Columns(4).Width = 1000
.Refresh
End With

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>