Click here to Skip to main content
15,902,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Linking VBScript back to VB6 Pin
Dave Kreskowiak16-Sep-04 3:36
mveDave Kreskowiak16-Sep-04 3:36 
GeneralRe: Linking VBScript back to VB6 Pin
tricknigjew16-Sep-04 3:48
tricknigjew16-Sep-04 3:48 
Generaldatagrid problem in vb.net Pin
sribusam15-Sep-04 23:32
sribusam15-Sep-04 23:32 
GeneralHandle Clipboard event in VB.NET Pin
kokain15-Sep-04 23:24
kokain15-Sep-04 23:24 
GeneralRe: Handle Clipboard event in VB.NET Pin
Dave Kreskowiak16-Sep-04 0:41
mveDave Kreskowiak16-Sep-04 0:41 
GeneralAdding items in listview Pin
Sumit Domyan15-Sep-04 19:58
Sumit Domyan15-Sep-04 19:58 
GeneralRe: Adding items in listview Pin
Dave Kreskowiak16-Sep-04 0:35
mveDave Kreskowiak16-Sep-04 0:35 
GeneralRe: Adding items in listview Pin
tricknigjew16-Sep-04 3:44
tricknigjew16-Sep-04 3:44 
Yes,
Private Sub Form_Load()

'// set the colums/view
ListView1.View = lvwReport
ListView1.ColumnHeaders.Add 1, , "Column1"
ListView1.ColumnHeaders.Add 2, , "Column2"

'// add main item + sub item
With ListView1.ListItems.Add(1, "test", "test1")
.ListSubItems.Add 1, "test", "test2"
End With

'// this is to update using index
With ListView1.ListItems.Item(1)
.ListSubItems.Item(1).Text = "updated test3!"
End With

'// this is to update by searching for the key
For i = 1 To ListView1.ListItems.Count
If ListView1.ListItems.Item(i).Key = "test" Then
ListView1.ListItems.Item(i).ListSubItems.Item(i).Text = "updated again!"
ListView1.ListItems.Item(i).Text = "updated main item"
End If
Next i

'// this is a way to update by searching for the text.
Dim itemnumber As Integer
itemnumber = ListView1.FindItem("updated main item").Index
ListView1.ListItems.Item(itemnumber).ListSubItems.Item(itemnumber).Text = "updated again...."
End Sub

Try that,
there are other ways but that should do u Smile | :)

GeneralCalling dll in visual c++ Pin
sumiko15-Sep-04 19:46
sumiko15-Sep-04 19:46 
GeneralUnhandled exception Pin
kokain15-Sep-04 16:08
kokain15-Sep-04 16:08 
GeneralModal Forms in VB 6.0 Pin
Red Sunday15-Sep-04 12:32
Red Sunday15-Sep-04 12:32 
GeneralRe: Modal Forms in VB 6.0 Pin
pbpb15-Sep-04 20:25
pbpb15-Sep-04 20:25 
GeneralRe: Modal Forms in VB 6.0 Pin
Purple Monk16-Sep-04 0:43
Purple Monk16-Sep-04 0:43 
GeneralRe: Modal Forms in VB 6.0 Pin
pbpb16-Sep-04 2:21
pbpb16-Sep-04 2:21 
GeneralVisual Basic Sequential File IO Pin
Red Sunday15-Sep-04 4:50
Red Sunday15-Sep-04 4:50 
GeneralRe: Visual Basic Sequential File IO Pin
Anonymous15-Sep-04 6:31
Anonymous15-Sep-04 6:31 
GeneralRe: Visual Basic Sequential File IO Pin
Red Sunday15-Sep-04 7:12
Red Sunday15-Sep-04 7:12 
GeneralRe: Visual Basic Sequential File IO [EDITED] Pin
Dave Kreskowiak15-Sep-04 8:03
mveDave Kreskowiak15-Sep-04 8:03 
GeneralRe: Visual Basic Sequential File IO [EDITED] Pin
Red Sunday15-Sep-04 8:14
Red Sunday15-Sep-04 8:14 
GeneralRe: Visual Basic Sequential File IO [EDITED] Pin
Dave Kreskowiak15-Sep-04 9:01
mveDave Kreskowiak15-Sep-04 9:01 
GeneralReturning Integer value from a VB (NOT .Net) Command line application Pin
Jobby Joseph15-Sep-04 3:54
Jobby Joseph15-Sep-04 3:54 
GeneralRe: Returning Integer value from a VB (NOT .Net) Command line application Pin
Dave Kreskowiak15-Sep-04 4:22
mveDave Kreskowiak15-Sep-04 4:22 
GeneralRe: Returning Integer value from a VB (NOT .Net) Command line application Pin
Jobby Joseph15-Sep-04 4:37
Jobby Joseph15-Sep-04 4:37 
GeneralDropdownlist Pin
jr121415-Sep-04 2:53
jr121415-Sep-04 2:53 
GeneralRe: Dropdownlist Pin
Purple Monk16-Sep-04 1:27
Purple Monk16-Sep-04 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.