Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15785

How to Get the Listindex of the cursor position(Listbox,FileList)

$
0
0
I am studying the transparent control. The LISTBOX is transparent, and it is difficult to click on the text, so I can find the corresponding LISTBOXA line number by clicking on the form, and simulate to click.

Get the line number of the cursor position, listindex
how to get (line,col) by mouse from treeview,listview,listbox,filelist,datagrid

Code:

Private Sub List1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Returns the current line number pointed by the mouse
Dim ListIndexByMouse As Long
'CODE?
End Sub

Like Vsflexgrid.ocx:
Code:

MouseCol returns the current column number pointed by the mouse
MouseRow returns the current row number pointed to by the mouse

Attached Images
 

Viewing all articles
Browse latest Browse all 15785

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>