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

C#

 
GeneralRe: Disappearing Controls on Windows Form App Pin
eddieangel23-Aug-10 9:27
eddieangel23-Aug-10 9:27 
GeneralRe: Disappearing Controls on Windows Form App Pin
Luc Pattyn23-Aug-10 10:07
sitebuilderLuc Pattyn23-Aug-10 10:07 
GeneralRe: Disappearing Controls on Windows Form App Pin
phil.o23-Aug-10 20:49
professionalphil.o23-Aug-10 20:49 
Questionthe locations are different than the mouse locations.. Pin
prasadbuddhika23-Aug-10 5:31
prasadbuddhika23-Aug-10 5:31 
AnswerRe: the locations are different than the mouse locations.. Pin
OriginalGriff23-Aug-10 6:05
mveOriginalGriff23-Aug-10 6:05 
GeneralRe: the locations are different than the mouse locations.. Pin
prasadbuddhika23-Aug-10 6:11
prasadbuddhika23-Aug-10 6:11 
GeneralRe: the locations are different than the mouse locations.. Pin
Ennis Ray Lynch, Jr.23-Aug-10 6:24
Ennis Ray Lynch, Jr.23-Aug-10 6:24 
GeneralRe: the locations are different than the mouse locations.. Pin
Luc Pattyn23-Aug-10 6:31
sitebuilderLuc Pattyn23-Aug-10 6:31 
coordinates (hence also mouse positions) are always relative to something. It could be the (top left corner of the) screen, it often is the containing Control. In your code, it is the Form half the time (see mouse events, they belong to the form), and the Panel the remaining times (see panel.Paint event). You need to fix that, probably by just compensating for the Panel's position relative to the Form.

There are many ways to do that. Maybe here the easiest is by applying a Graphics.TranslateTransform inside your paint handler.

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.


GeneralRe: the locations are different than the mouse locations.. Pin
OriginalGriff23-Aug-10 6:45
mveOriginalGriff23-Aug-10 6:45 
GeneralRe: the locations are different than the mouse locations.. Pin
Luc Pattyn23-Aug-10 7:15
sitebuilderLuc Pattyn23-Aug-10 7:15 
QuestionDownload file from server to local folder Pin
Agweet23-Aug-10 4:16
Agweet23-Aug-10 4:16 
AnswerRe: Download file from server to local folder Pin
Luc Pattyn23-Aug-10 4:18
sitebuilderLuc Pattyn23-Aug-10 4:18 
AnswerRe: Download file from server to local folder Pin
Pete O'Hanlon23-Aug-10 4:35
mvePete O'Hanlon23-Aug-10 4:35 
AnswerRe: Download file from server to local folder Pin
Agweet23-Aug-10 6:01
Agweet23-Aug-10 6:01 
GeneralRe: Download file from server to local folder Pin
Ravi Bhavnani23-Aug-10 6:23
professionalRavi Bhavnani23-Aug-10 6:23 
GeneralRe: Download file from server to local folder Pin
Luc Pattyn23-Aug-10 6:33
sitebuilderLuc Pattyn23-Aug-10 6:33 
GeneralRe: Download file from server to local folder Pin
OriginalGriff23-Aug-10 6:48
mveOriginalGriff23-Aug-10 6:48 
GeneralRe: Download file from server to local folder Pin
Agweet23-Aug-10 6:54
Agweet23-Aug-10 6:54 
GeneralRe: Download file from server to local folder Pin
Ravi Bhavnani23-Aug-10 7:04
professionalRavi Bhavnani23-Aug-10 7:04 
GeneralRe: Download file from server to local folder Pin
Ravi Bhavnani23-Aug-10 7:09
professionalRavi Bhavnani23-Aug-10 7:09 
GeneralRe: Download file from server to local folder Pin
Agweet23-Aug-10 20:14
Agweet23-Aug-10 20:14 
GeneralRe: Download file from server to local folder Pin
Ravi Bhavnani24-Aug-10 5:20
professionalRavi Bhavnani24-Aug-10 5:20 
GeneralRe: Download file from server to local folder Pin
OriginalGriff23-Aug-10 8:20
mveOriginalGriff23-Aug-10 8:20 
GeneralRe: Download file from server to local folder Pin
Luc Pattyn23-Aug-10 7:03
sitebuilderLuc Pattyn23-Aug-10 7:03 
GeneralRe: Download file from server to local folder Pin
OriginalGriff23-Aug-10 8:08
mveOriginalGriff23-Aug-10 8:08 

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.