
Signature
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Thanks Ken,
For some reason, I do not have the ToolTipText available to me!?!?!?
Do While Not rs.EOF
With lvClientNotes.ListItems.Add(,
CStr(rs.Fields.Item("NoteId").Value) & "K", rs.Fields.Item("Type").Value &
"")
.SubItems(1) =
RTrim(rs.Fields.Item("LastModUser").Value) & ""
.SubItems(2) =
Format(rs.Fields.Item("LastModDate").Value, "mm/dd/yyyy")
.SubItems(3) = Replace(rs.Fields.Item("Note").Value,
vbCrLf, " ") & ""
.ToolTipText = rs.Fields.Item("Note").Value & ""
'<----does not work!
End With
rs.MoveNext
Loop
rs.Close
Also, is there a way to allow the columns to display "thicker" than 1 row?
Thanks again!
Brian
>> Hello all,
>>
[quoted text clipped - 30 lines]
> End Sub
> '==============
Bryan Dickerson - 24 Sep 2004 21:24 GMT
Read thru his code again. He doesn't use the .Subitems property, he uses
the .ListSubItems collection for each Item. Each item under that has a
.Text and a .ToolTip property.
> Thanks Ken,
>
[quoted text clipped - 58 lines]
> > End Sub
> > '==============
Brian McCullough - 24 Sep 2004 21:50 GMT
I was using an older version of the ListView control.
> Read thru his code again. He doesn't use the .Subitems property, he uses
> the .ListSubItems collection for each Item. Each item under that has a
[quoted text clipped - 65 lines]
>> > End Sub
>> > '==============
MikeD - 24 Sep 2004 22:41 GMT
Bryan, perhaps you need to look through Brian's code again. <g> Brian's
code is using ToolTipText of a ListItem object (not how I would have done it
[using a With block on the Add method of ListItems], but a ListItem object
nonetheless).
Mike
> Read thru his code again. He doesn't use the .Subitems property, he uses
> the .ListSubItems collection for each Item. Each item under that has a
[quoted text clipped - 63 lines]
> > > End Sub
> > > '==============
MikeD - 24 Sep 2004 21:57 GMT
> Thanks Ken,
>
> For some reason, I do not have the ToolTipText available to me!?!?!?
> .ToolTipText = rs.Fields.Item("Note").Value & ""
> '<----does not work!
Are you getting a "Method or data member not found" compile-time error? If
so, are you sure you're using the VB6 version of Windows Common Controls?
The VB5 version does not have this property for a ListView control. If
you're not getting this error, then explain "does not work". That could
mean anything.
Mike
I have the columns set during design time. I also have the View set to
lvReport during design time. Don't know if this makes a difference.
>> Hello all,
>>
[quoted text clipped - 30 lines]
> End Sub
> '==============
GILROY PONNIAH - 30 Sep 2004 23:13 GMT
Hi Brian,
Do you have any sample codes for VB6 ListView to modify the content of
specific listed column items.
Thank you.
Rgds,
Gilroy.