Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
GeneralSaving file & opening it form another app Pin
plextoR16-Apr-03 12:03
plextoR16-Apr-03 12:03 
GeneralRe: Saving file & opening it form another app Pin
Paresh Gheewala17-Apr-03 12:30
Paresh Gheewala17-Apr-03 12:30 
GeneralRe: Saving file & opening it form another app Pin
plextoR17-Apr-03 13:11
plextoR17-Apr-03 13:11 
GeneralC# forms[design] Pin
davidj0x116-Apr-03 11:37
davidj0x116-Apr-03 11:37 
GeneralRe: C# forms[design] Pin
Andres Manggini16-Apr-03 13:25
Andres Manggini16-Apr-03 13:25 
GeneralRe: C# forms[design] Pin
davidj0x117-Apr-03 5:36
davidj0x117-Apr-03 5:36 
GeneralListview item click events Pin
vlusardi16-Apr-03 10:46
vlusardi16-Apr-03 10:46 
GeneralRe: Listview item click events Pin
James T. Johnson16-Apr-03 14:12
James T. Johnson16-Apr-03 14:12 
vlusardi wrote:
can someone give me some
advice as to how this can be done...?


Use the ListView's GetItemAt method to retrieve the item which was clicked.

You get the point that was clicked by using the static Control.MousePosition property, then pass that through the ListView's PointToClient method (to convert from screen coordinates to ones relative to the listview).

f.e

ListViewItem lvi = myListView.GetItemAt(
    myListView.PointToClient(Control.MousePosition)
);
HTH,

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

GeneralRe: Listview item click events Pin
chito16-Apr-03 16:24
chito16-Apr-03 16:24 
GeneralRe: Listview item click events Pin
vlusardi17-Apr-03 11:00
vlusardi17-Apr-03 11:00 
QuestionSqlDataAdapter .Fill() using DataTable instead of DataSet? Pin
zoltan_ie16-Apr-03 7:15
zoltan_ie16-Apr-03 7:15 
AnswerRe: SqlDataAdapter .Fill() using DataTable instead of DataSet? Pin
James T. Johnson16-Apr-03 7:30
James T. Johnson16-Apr-03 7:30 
GeneralRe: SqlDataAdapter .Fill() using DataTable instead of DataSet? Pin
zoltan_ie16-Apr-03 22:45
zoltan_ie16-Apr-03 22:45 
GeneralGet proc only for current user Pin
Alex Korchemniy16-Apr-03 5:50
Alex Korchemniy16-Apr-03 5:50 
GeneralRe: Get proc only for current user Pin
Mazdak16-Apr-03 8:30
Mazdak16-Apr-03 8:30 
GeneralOwnerdrawn StatusBarPanel Pin
monrobot1316-Apr-03 5:48
monrobot1316-Apr-03 5:48 
GeneralRe: Ownerdrawn StatusBarPanel Pin
Alex Korchemniy16-Apr-03 5:55
Alex Korchemniy16-Apr-03 5:55 
GeneralArgument-substitution vs Concatenation Pin
Alvaro Mendez16-Apr-03 4:37
Alvaro Mendez16-Apr-03 4:37 
GeneralRe: Argument-substitution vs Concatenation Pin
Alex Korchemniy16-Apr-03 5:54
Alex Korchemniy16-Apr-03 5:54 
GeneralRe: Argument-substitution vs Concatenation Pin
James T. Johnson16-Apr-03 7:00
James T. Johnson16-Apr-03 7:00 
GeneralRe: Argument-substitution vs Concatenation Pin
Paul Ingles16-Apr-03 7:56
Paul Ingles16-Apr-03 7:56 
GeneralRe: Argument-substitution vs Concatenation Pin
Adam Turner16-Apr-03 12:42
Adam Turner16-Apr-03 12:42 
GeneralRe: Argument-substitution vs Concatenation Pin
leppie16-Apr-03 12:54
leppie16-Apr-03 12:54 
GeneralDateTime Operation Pin
Mazdak16-Apr-03 3:52
Mazdak16-Apr-03 3:52 
GeneralRe: DateTime Operation Pin
Jim Stewart16-Apr-03 4:21
Jim Stewart16-Apr-03 4:21 

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.