Click here to Skip to main content
14,426,749 members
   

C#

 
GeneralRe: Application Deployment Pin
Garrett Pauls22-Jul-08 9:25
MemberGarrett Pauls22-Jul-08 9:25 
GeneralRe: Application Deployment Pin
BlitzPackage22-Jul-08 9:54
MemberBlitzPackage22-Jul-08 9:54 
GeneralRe: Application Deployment Pin
selcuks24-Jul-08 22:04
Memberselcuks24-Jul-08 22:04 
QuestionClass Cleanup Challenge Pin
lisad_tgc22-Jul-08 6:53
Memberlisad_tgc22-Jul-08 6:53 
AnswerRe: Class Cleanup Challenge Pin
Anthony Mushrow22-Jul-08 6:56
professionalAnthony Mushrow22-Jul-08 6:56 
QuestionMultithreading and XML DOM Pin
Justin Time22-Jul-08 6:14
MemberJustin Time22-Jul-08 6:14 
QuestionMouseMove event not firing for newly added control [modified] Pin
Michael Dausmann22-Jul-08 5:59
MemberMichael Dausmann22-Jul-08 5:59 
AnswerRe: MouseMove event not firing for newly added control Pin
half-life22-Jul-08 8:50
Memberhalf-life22-Jul-08 8:50 
private bool Draged = false;
private int clickOffsetX;
private int clickOffsetY;

private void Sensor_MouseDown(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        this.Draged = true;
        clickOffsetX = e.X;
        clickOffsetY = e.Y;
    }
}

private void Sensor_MouseMove(object sender, MouseEventArgs e)
{
    if (this.Draged && e.Button.Equals(MouseButtons.Left))
    {
        this.Left += e.X - this.clickOffsetX;
        this.Top += e.Y - this.clickOffsetY;

    }
}


use the above
it works fine to me with a user control i've built that acts like a sensor
and can be moved around in an area of deployment

Smile | :) Smile | :) hope it helps

Have Fun
Never forget it

GeneralRe: MouseMove event not firing for newly added control Pin
Michael Dausmann22-Jul-08 13:15
MemberMichael Dausmann22-Jul-08 13:15 
AnswerThe Answer! Use Capture=false.. Re: MouseMove event not firing for newly added control Pin
Michael Dausmann22-Jul-08 14:56
MemberMichael Dausmann22-Jul-08 14:56 
QuestionIs it possible to make this routine automatic? Pin
But_Im_a_Lady22-Jul-08 5:53
MemberBut_Im_a_Lady22-Jul-08 5:53 
AnswerRe: Is it possible to make this routine automatic? Pin
Luc Pattyn22-Jul-08 6:25
sitebuilderLuc Pattyn22-Jul-08 6:25 
GeneralRe: Is it possible to make this routine automatic? Pin
But_Im_a_Lady22-Jul-08 21:30
MemberBut_Im_a_Lady22-Jul-08 21:30 
AnswerRe: Is it possible to make this routine automatic? Pin
Michael Dausmann22-Jul-08 6:34
MemberMichael Dausmann22-Jul-08 6:34 
GeneralRe: Is it possible to make this routine automatic? Pin
But_Im_a_Lady22-Jul-08 21:33
MemberBut_Im_a_Lady22-Jul-08 21:33 
Question.net 2.0 windows - treeview Pin
arkiboys22-Jul-08 5:36
Memberarkiboys22-Jul-08 5:36 
AnswerRe: .net 2.0 windows - treeview Pin
half-life22-Jul-08 8:57
Memberhalf-life22-Jul-08 8:57 
GeneralRe: .net 2.0 windows - treeview Pin
arkiboys22-Jul-08 11:21
Memberarkiboys22-Jul-08 11:21 
GeneralRe: .net 2.0 windows - treeview Pin
half-life23-Jul-08 11:24
Memberhalf-life23-Jul-08 11:24 
GeneralRe: .net 2.0 windows - treeview Pin
arkiboys23-Jul-08 11:52
Memberarkiboys23-Jul-08 11:52 
GeneralRe: .net 2.0 windows - treeview Pin
half-life23-Jul-08 20:33
Memberhalf-life23-Jul-08 20:33 
QuestionControl Hardware through Software Pin
thund3rstruck22-Jul-08 5:00
Memberthund3rstruck22-Jul-08 5:00 
AnswerRe: Control Hardware through Software Pin
stancrm22-Jul-08 5:05
Memberstancrm22-Jul-08 5:05 
GeneralRe: Control Hardware through Software Pin
thund3rstruck22-Jul-08 5:15
Memberthund3rstruck22-Jul-08 5:15 
GeneralRe: Control Hardware through Software Pin
Luc Pattyn22-Jul-08 5:22
sitebuilderLuc Pattyn22-Jul-08 5:22 

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.