Click here to Skip to main content
15,886,565 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataBindingComplete - modified Pin
Dewald11-Oct-10 23:18
Dewald11-Oct-10 23:18 
QuestionInvoke methods in OCX in run time in c# Pin
Viratsaran11-Oct-10 20:16
Viratsaran11-Oct-10 20:16 
AnswerRe: Invoke methods in OCX in c# Pin
Abhinav S11-Oct-10 20:24
Abhinav S11-Oct-10 20:24 
AnswerRe: Invoke methods in OCX in c# Pin
JF201511-Oct-10 21:22
JF201511-Oct-10 21:22 
QuestionListView GetItemAt: problem with point returned Pin
DaveGriffith11-Oct-10 13:27
DaveGriffith11-Oct-10 13:27 
AnswerRe: ListView GetItemAt: problem with point returned Pin
Luc Pattyn11-Oct-10 14:05
sitebuilderLuc Pattyn11-Oct-10 14:05 
GeneralRe: ListView GetItemAt: problem with point returned Pin
DaveGriffith11-Oct-10 14:24
DaveGriffith11-Oct-10 14:24 
AnswerRe: ListView GetItemAt: problem with point returned Pin
Luc Pattyn11-Oct-10 14:38
sitebuilderLuc Pattyn11-Oct-10 14:38 
Mouse coordinates are relative to the Control they apply to. If you have a MouseDown event on a Panel, the Panel is active and gets its event with local coordinates. MSDN holds examples where e.Location is used directly for painting something inside a Control.

There are only a few exceptions, and they always clearly state "in screen coordinates"; they apply to situations where there isn't an active Control, e.g. when you drop something (DragDrop.Drop event), or just ask for the mouse location (Control.MousePosition); for these, chances are you want to relate the event to the underlying Control, and then you would need Control.PointToClient.

Try it without PointToClient!
And check the MSDN documentation.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


AnswerRe: ListView GetItemAt: problem with point returned Pin
DaveGriffith11-Oct-10 15:04
DaveGriffith11-Oct-10 15:04 
AnswerRe: ListView GetItemAt: problem with point returned Pin
Luc Pattyn11-Oct-10 15:09
sitebuilderLuc Pattyn11-Oct-10 15:09 
QuestionClick Event NaviBar Pin
leocode711-Oct-10 12:32
leocode711-Oct-10 12:32 
Questionreaching textbox in a panel Pin
Erdinc2711-Oct-10 1:06
Erdinc2711-Oct-10 1:06 
AnswerMessage Closed Pin
11-Oct-10 1:19
stancrm11-Oct-10 1:19 
GeneralRe: reaching textbox in a panel Pin
Erdinc2711-Oct-10 1:26
Erdinc2711-Oct-10 1:26 
AnswerRe: reaching textbox in a panel Pin
Pete O'Hanlon11-Oct-10 1:48
mvePete O'Hanlon11-Oct-10 1:48 
GeneralRe: reaching textbox in a panel Pin
Erdinc2711-Oct-10 2:08
Erdinc2711-Oct-10 2:08 
GeneralRe: reaching textbox in a panel Pin
Pete O'Hanlon11-Oct-10 2:40
mvePete O'Hanlon11-Oct-10 2:40 
AnswerRe: reaching textbox in a panel Pin
Luc Pattyn11-Oct-10 1:55
sitebuilderLuc Pattyn11-Oct-10 1:55 
QuestionHow to make a attractive user interface. Pin
R.DileepKumar10-Oct-10 23:26
R.DileepKumar10-Oct-10 23:26 
AnswerRe: How to make a attractive user interface. Pin
Pete O'Hanlon11-Oct-10 0:03
mvePete O'Hanlon11-Oct-10 0:03 
GeneralRe: How to make a attractive user interface. Pin
R.DileepKumar11-Oct-10 18:43
R.DileepKumar11-Oct-10 18:43 
GeneralRe: How to make a attractive user interface. Pin
Nish Nishant12-Oct-10 9:05
sitebuilderNish Nishant12-Oct-10 9:05 
GeneralRe: How to make a attractive user interface. Pin
Pete O'Hanlon12-Oct-10 9:22
mvePete O'Hanlon12-Oct-10 9:22 
AnswerRe: How to make a attractive user interface. Pin
#realJSOP11-Oct-10 2:36
mve#realJSOP11-Oct-10 2:36 
AnswerMy Vote of 1 Pin
Keith Barrow11-Oct-10 2:46
professionalKeith Barrow11-Oct-10 2:46 

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.