473,378 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Listview and Tooltips

Hi, hope im posting this in the right place. Please put
me right if im wrong. I have just moved over to .net and
am still on the steep learning curve. In 6 i used to be
able to set it so that each cell in a List view control
which was set to details view could have a different
tooltip, i.e. one showing the content of the cell. I cant
seem to work out how to do this though in VB.net. Could
someone help me out. It would be a great help

Regards

JP

Nov 20 '05 #1
3 5783
Hi,

You would have to add a tooltip control to your form. In the mouse
move event you would have to change the tooltip.

Private Sub ListView1_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseMove

Dim lvi As ListViewItem = ListView1.GetItemAt(e.X, e.Y)

Try

ToolTip1.SetToolTip(ListView1, lvi.ToString)

Catch

End Try

End Sub

Ken
----------------------------
"James Proctor" <ja**********@ebmis.co.uk> wrote in message
news:10****************************@phx.gbl...
Hi, hope im posting this in the right place. Please put
me right if im wrong. I have just moved over to .net and
am still on the steep learning curve. In 6 i used to be
able to set it so that each cell in a List view control
which was set to details view could have a different
tooltip, i.e. one showing the content of the cell. I cant
seem to work out how to do this though in VB.net. Could
someone help me out. It would be a great help

Regards

JP

Nov 20 '05 #2
Hi,

Thats really good thanx but it only works for the first
column in the listview. How can i do it so that it works
on all the colums. It maybe isnt possible anymore. Hope
you can help though. Thank you for your help so far.

JP
-----Original Message-----
Hi,

You would have to add a tooltip control to your form. In the mousemove event you would have to change the tooltip.

Private Sub ListView1_MouseMove(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.MouseEventArgs) Handles ListView1.MouseMove
Dim lvi As ListViewItem = ListView1.GetItemAt(e.X, e.Y)

Try

ToolTip1.SetToolTip(ListView1, lvi.ToString)

Catch

End Try

End Sub

Ken
----------------------------
"James Proctor" <ja**********@ebmis.co.uk> wrote in messagenews:10****************************@phx.gbl...
Hi, hope im posting this in the right place. Please put
me right if im wrong. I have just moved over to .net and am still on the steep learning curve. In 6 i used to be
able to set it so that each cell in a List view control
which was set to details view could have a different
tooltip, i.e. one showing the content of the cell. I cant seem to work out how to do this though in VB.net. Could
someone help me out. It would be a great help

Regards

JP

.

Nov 20 '05 #3
Hi,

Maybe this will help.
Private Sub ListView1_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseMove

Dim lvi As ListViewItem = ListView1.GetItemAt(8, e.Y)

Try

ToolTip1.SetToolTip(ListView1, lvi.ToString)

Catch ex As Exception

Debug.WriteLine(ex.ToString())

End Try

End Sub

Ken

-----------------------

"James Proctor" <ja**********@ebmis.co.uk> wrote in message
news:05****************************@phx.gbl...
Hi,

Thats really good thanx but it only works for the first
column in the listview. How can i do it so that it works
on all the colums. It maybe isnt possible anymore. Hope
you can help though. Thank you for your help so far.

JP
-----Original Message-----
Hi,

You would have to add a tooltip control to your

form. In the mouse
move event you would have to change the tooltip.

Private Sub ListView1_MouseMove(ByVal sender As Object,

ByVal e As
System.Windows.Forms.MouseEventArgs) Handles

ListView1.MouseMove

Dim lvi As ListViewItem = ListView1.GetItemAt(e.X, e.Y)

Try

ToolTip1.SetToolTip(ListView1, lvi.ToString)

Catch

End Try

End Sub

Ken
----------------------------
"James Proctor" <ja**********@ebmis.co.uk> wrote in

message
news:10****************************@phx.gbl...
Hi, hope im posting this in the right place. Please put
me right if im wrong. I have just moved over to .net and am still on the steep learning curve. In 6 i used to be
able to set it so that each cell in a List view control
which was set to details view could have a different
tooltip, i.e. one showing the content of the cell. I cant seem to work out how to do this though in VB.net. Could
someone help me out. It would be a great help

Regards

JP

.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Ei | last post by:
I'm working on a C# Windows Forms application that is leaking memory. I've been using the SciTech NetMem Profiler 2 (A really great tool, BTW) to track down leaks. I've found one related to...
1
by: Wayne Aprato | last post by:
Tooltips in Access have not worked on my machine for a long time despite several reinstalls of the operating system and applications at fairly regular intervals. I have finally pinned down the...
5
by: Yura Moldavanov | last post by:
Hello, All! I have a problem with putting the ToolTips on ListView Header ToolTip Text Property must changes depending on column, which is under mosue cursor. Problem 1. Standatr .Net...
2
by: Ken | last post by:
Hi all, Please help! I'm attempting to apply tooltips to each individual item in VB.Net's Listview control. In VB6 it was easy - you just did the following (assumes "myListView" is the name of...
2
by: Amjad | last post by:
Hi, How do I display a tooltip when mouse hovers on top of an item of a ListView? I want the tooltip to contain the text of the item the mouse is pointing at. Amjad
4
by: Cesario | last post by:
I'm trying to display formatted multi-line text in tooltips. It seems that the newline character works fine whereas the 'tab' character is causing problems and can't display properly. More...
2
by: Dean Slindee | last post by:
Is it possible to determine which listview item a mouse is hovering over? Thanks, Dean Slindee
1
by: Robert Smith | last post by:
Hello, I have a Tree that contains tooltips, however when I right click on a node of the tree the context menu covers up the tooltips and it looks rather unprofessional. I wish to hide the...
1
by: piercy | last post by:
Hi, ive been trying to produce something using a listview control which shows error messages for the emails sent from my application. Its a wierd concept so im going to try explain it best i can. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.