Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
Questionhow to customize a window Pin
Pikebu18-Mar-05 8:52
Pikebu18-Mar-05 8:52 
AnswerRe: how to customize a window Pin
Judah Gabriel Himango18-Mar-05 9:40
sponsorJudah Gabriel Himango18-Mar-05 9:40 
AnswerRe: how to customize a window Pin
MoustafaS18-Mar-05 12:26
MoustafaS18-Mar-05 12:26 
GeneralStatic Values Pin
MrEyes18-Mar-05 7:20
MrEyes18-Mar-05 7:20 
GeneralRe: Static Values Pin
Colin Angus Mackay18-Mar-05 7:27
Colin Angus Mackay18-Mar-05 7:27 
GeneralRe: Static Values Pin
Ravindra Sadaphule18-Mar-05 11:43
Ravindra Sadaphule18-Mar-05 11:43 
Generalmouse drag over problem Pin
ppp00118-Mar-05 5:11
ppp00118-Mar-05 5:11 
GeneralRe: mouse drag over problem Pin
Judah Gabriel Himango18-Mar-05 7:22
sponsorJudah Gabriel Himango18-Mar-05 7:22 
Because the GetItemAt method looks at a coordinate local to the control, not the screen (i.e. Point(0, 0) to the control is the upper left corner of the list view, whereas Point(0, 0) to the cursor is the upper left corner of the screen).

Here's some example code that should work for you:

Point localCoordinate = listView.PointToClient(MousePosition);
listView.GetItemAt(localCoordinate.X, localCoordinate.Y);


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: He has a funny face. And he's my son.
Judah Himango


GeneralMemory optimisation Pin
PaleyX18-Mar-05 5:10
PaleyX18-Mar-05 5:10 
GeneralRe: Memory optimisation Pin
Andy Brummer18-Mar-05 5:46
sitebuilderAndy Brummer18-Mar-05 5:46 
GeneralRe: Memory optimisation Pin
ACorbs19-Mar-05 11:40
ACorbs19-Mar-05 11:40 
GeneralGacUtil and RegAsm Pin
ppp00118-Mar-05 4:57
ppp00118-Mar-05 4:57 
GeneralRe: GacUtil and RegAsm Pin
Judah Gabriel Himango18-Mar-05 5:28
sponsorJudah Gabriel Himango18-Mar-05 5:28 
GeneralRe: GacUtil and RegAsm Pin
Mike Dimmick18-Mar-05 8:57
Mike Dimmick18-Mar-05 8:57 
GeneralMac address Pin
Member 178719018-Mar-05 3:54
Member 178719018-Mar-05 3:54 
GeneralRe: Mac address Pin
felopater18-Mar-05 15:13
felopater18-Mar-05 15:13 
GeneralRe: Mac address Pin
afinnell20-Mar-05 17:02
afinnell20-Mar-05 17:02 
GeneralPolicy not being applied to reference at this time Pin
Guillermo Jimenez18-Mar-05 3:47
Guillermo Jimenez18-Mar-05 3:47 
GeneralRe: Policy not being applied to reference at this time Pin
Member 9878981-Jul-10 12:26
Member 9878981-Jul-10 12:26 
Generaldraw on transparent control over a mediaplayer Pin
spAAwn18-Mar-05 2:57
spAAwn18-Mar-05 2:57 
GeneralRe: draw on transparent control over a mediaplayer Pin
MoustafaS18-Mar-05 12:35
MoustafaS18-Mar-05 12:35 
GeneralRe: draw on transparent control over a mediaplayer Pin
spAAwn18-Mar-05 12:44
spAAwn18-Mar-05 12:44 
GeneralRe: draw on transparent control over a mediaplayer Pin
MoustafaS18-Mar-05 14:13
MoustafaS18-Mar-05 14:13 
GeneralRe: draw on transparent control over a mediaplayer Pin
spAAwn18-Mar-05 14:28
spAAwn18-Mar-05 14:28 
GeneralRe: draw on transparent control over a mediaplayer Pin
MoustafaS19-Mar-05 6:48
MoustafaS19-Mar-05 6:48 

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.