answersLogoWhite

0

just right ckick on tools bar present on left side

u will have a popup select component and again a box will appear now select option

"""" microsft window common control vb.6""""""""'

u will got listview in the tools

nd now drag it on form............

select view as=== ivwreport from properties window..............

and code it as................

Private Sub Form_Load()

Set cn = New ADODB.Connection

'cn.Open "provider=MSDAORA.1; user id = scott; password=tiger;data source=aim;"

cn.Open "provider=MSDAORA.1; user id = scott; password=tiger;"

Set rec = New ADODB.Recordset

rec.ActiveConnection = cn

rec.LockType = adLockOptimistic

rec.CursorLocation = adUseClient

rec.Source = "name of form"

rec.Open

rec.MoveFirst

While rec.EOF = False

cou = cou + 1

rec.MoveNext

Wend

rec.MoveFirst

ReDim ListItem(cou)

i = 1

While rec.EOF = False

Set ListItem(i) = ListView1.ListItems.Add()

ListItem(i).Text = rec.Fields(0)

ListView1.ListItems(i).ListSubItems.Add , , Trim(rec.Fields(1))

ListView1.ListItems(i).ListSubItems.Add , , Trim(rec.Fields(2))

rec.MoveNext

i = i + 1

Wend

Adodc1.Visible = False

End Sub

Private Sub listview1_DblClick()

rec.MoveFirst

i = 1

While rec.EOF = False

If rec.Fields(0) <> ListView1.ListItems(i) Then

rec.MoveNext

Else

Text1.Text = rec.Fields(0)

Text2.Text = rec.Fields(1)

DTPicker1.Value = rec.Fields(2)

rec.MoveNext

End If

i = i + 1

Wend

End Sub

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you make a cp trainer with free member?

use vb6


What is difference between vb5 vb6?

VB6 is a more recent and more advanced version of visual basic.


How do you get a timer to work in a loop to slow it down in vb6?

You can use the Sleep function in VB6 to introduce a delay within your loop. This function pauses the execution for a specified number of milliseconds. Just insert Sleep(milliseconds) in your loop to slow it down.


How do you convert vb6 to dmg?

A .vb6 file is visual basic 6 source code, sometimes with it are .frm files that you would need. A .dmg is a Macintosh binary. you would have to find a program to compile the vb6 code to a Macintosh binary.


How can you execute a new line in VB6?

vbNewLine


Differences butween the vb6 asnd vbnet?

Please refer the following link, there you can find useful information about differences between VB6 and VB .NET


'Download Visual Studio 6 Or Visual Basic 6 In Free?

Studio consists of C#, VisualJ, etc. Visual Basic is the predefined function of the VB6 environment. if you want to code in VB strictly, download VB6, but if you want to use C#, etc. than use VS6. But by now, I recommend upgrading to VS2008


What is ment by listviewitem in vbnet?

In VB.NET, a ListViewItem represents a single item in a ListView control, which is used to display a list of items in a customizable format. Each ListViewItem can contain text, images, and subitems, allowing for a detailed representation of data. This item can be added to the ListView to create a structured view of related information, such as files in a directory or records in a database. The ListView control can display these items in different views, such as details, large icons, or small icons.


Are Club Penguin trainers safe?

Hi There,Club Penguin Trainers Are Safe! Aslong as you dont use the ones which have not been made in VB6.


How do you migrate Vb6 application to VB.Net?

In Visual Studio, use the migration wizard. It should be 90% successful. The rest will need manual refactoring.


Free vb6 source code download for submission?

thanks


How can you make a vb6 project a web based project or how will you able to embed vb6 project or vb.net project into asp.net website?

you simply cant, unless you know how to upload exe's to the internet.