Jump to content
Xtreme .Net Talk

slim

Members
  • Posts

    2
  • Joined

  • Last visited

Personal Information

  • Occupation
    IT Support
  • Visual Studio .NET Version
    visual basic .net
  • .NET Preferred Language
    vb.net

slim's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, Just a quick question about the best way to display data from a SQL query on a form. The following code works fine and lists the records in a listbox, but what I would like to do is display the data in a datagrid or flexigrid, but I have not been able to work out how to do it. Can anyone point me in the right direction. Thanks in advance for any help Slim Dim conA As New Odbc.OdbcConnection Dim strSql As String = "select * from product" conA.ConnectionString = "DSN=" & txtDsn.Text & ";Password=" & txtPassword.Text & ";User ID=" & txtUsername.Text conA.Open() Dim mycommand As New OdbcCommand(strSql, conA) Dim myODBCreader As OdbcDataReader = mycommand.ExecuteReader While myODBCreader.Read ListBox1.Items.Add(myODBCreader("Bin")) End While conA.Close() myODBCreader.Close() mycommand.Dispose()
  2. Hi, I wonder if you can help me, bascially we have a crystal report viewer application written in VB6. When the execuatble is launched from one of our software programs it is passed three values (see below). Option Explicit Public strDataSource As String Public strInitCatalog As String Public lngReportID As String The question is how to I start the VB6 application and pass the three values to the application from my New VB .NET appication (just like our other software does). Thanks for our help Slim
×
×
  • Create New...