Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to capture mouse enter event while left mouse button is clicked? Pin
Alvaro Enriquez31-Jan-07 1:31
Alvaro Enriquez31-Jan-07 1:31 
GeneralRe: How to capture mouse enter event while left mouse button is clicked? Pin
Mircea Puiu31-Jan-07 2:35
Mircea Puiu31-Jan-07 2:35 
GeneralRe: How to capture mouse enter event while left mouse button is clicked? Pin
Martin#31-Jan-07 2:49
Martin#31-Jan-07 2:49 
GeneralRe: How to capture mouse enter event while left mouse button is clicked? Pin
Mircea Puiu31-Jan-07 3:32
Mircea Puiu31-Jan-07 3:32 
QuestionRe: How to capture mouse enter event while left mouse button is clicked? Pin
Alvaro Enriquez31-Jan-07 3:55
Alvaro Enriquez31-Jan-07 3:55 
AnswerRe: How to capture mouse enter event while left mouse button is clicked? Pin
Mircea Puiu31-Jan-07 4:59
Mircea Puiu31-Jan-07 4:59 
GeneralRe: How to capture mouse enter event while left mouse button is clicked? Pin
Martin#31-Jan-07 10:46
Martin#31-Jan-07 10:46 
GeneralRe: How to capture mouse enter event while left mouse button is clicked? Pin
Alvaro Enriquez31-Jan-07 23:15
Alvaro Enriquez31-Jan-07 23:15 
OK. I have done what you have recommended, but it is unuseful. I have written then next mousemove event fot both the inkpictures:

private void inkPicture_MouseMove(object sender, MouseEventArgs e)
{
if (dragging)
{
PictureBox pb = (PictureBox)sender;
if (e.Button == MouseButtons.Left)
{
if (pb == pictureBox1)
{
target = 1;
}
else if (pb == pictureBox2)
{
Console.WriteLine("Asigned 2");
}
}
}
}

What I want is to get both the message "Asigned 1" and "Asigned 2" WITHOUT RELEASE THE MOUSE BUTTON, I mean, clicking and holding the mouse button in one of the two pictureboxes and going over the other one with the button still clicked. Please, try it. If you keep the button pressed when you leave the original picturebox, it remains throwing the mousemove event for that picturebox you have just leaved as if you were still in its area. That is my problem, and that is why I cannot detect when entering the new picturebox. I really hope my explanation to be clearly enough this time.

Any ideas?

Thank you very much in advance!!!
AnswerRe: How to capture mouse enter event while left mouse button is clicked? Pin
Alvaro Enriquez1-Feb-07 0:31
Alvaro Enriquez1-Feb-07 0:31 
QuestionAlgorithm for encryption and Connect Pin
zanele sibongile30-Jan-07 21:18
zanele sibongile30-Jan-07 21:18 
Question"Window class name is not valid. " in designer Pin
Christian Graus30-Jan-07 20:47
protectorChristian Graus30-Jan-07 20:47 
AnswerRe: "Window class name is not valid. " in designer Pin
Martin#30-Jan-07 21:15
Martin#30-Jan-07 21:15 
QuestionRe: "Window class name is not valid. " in designer Pin
Seishin#30-Jan-07 21:17
Seishin#30-Jan-07 21:17 
AnswerRe: "Window class name is not valid. " in designer Pin
Martin#30-Jan-07 21:24
Martin#30-Jan-07 21:24 
GeneralRe: "Window class name is not valid. " in designer Pin
Seishin#30-Jan-07 21:31
Seishin#30-Jan-07 21:31 
GeneralRe: "Window class name is not valid. " in designer Pin
Christian Graus30-Jan-07 22:01
protectorChristian Graus30-Jan-07 22:01 
GeneralRe: "Window class name is not valid. " in designer Pin
Martin#30-Jan-07 22:26
Martin#30-Jan-07 22:26 
GeneralRe: "Window class name is not valid. " in designer Pin
engsrini31-Jan-07 3:30
engsrini31-Jan-07 3:30 
AnswerRe: "Window class name is not valid. " in designer Pin
Seishin#30-Jan-07 21:15
Seishin#30-Jan-07 21:15 
AnswerRe: "Window class name is not valid. " in designer Pin
Luc Pattyn31-Jan-07 9:03
sitebuilderLuc Pattyn31-Jan-07 9:03 
GeneralRe: "Window class name is not valid. " in designer Pin
Christian Graus31-Jan-07 9:22
protectorChristian Graus31-Jan-07 9:22 
GeneralRe: "Window class name is not valid. " in designer Pin
Luc Pattyn31-Jan-07 9:25
sitebuilderLuc Pattyn31-Jan-07 9:25 
GeneralRe: "Window class name is not valid. " in designer Pin
Christian Graus31-Jan-07 9:27
protectorChristian Graus31-Jan-07 9:27 
GeneralRe: "Window class name is not valid. " in designer Pin
Luc Pattyn31-Jan-07 9:37
sitebuilderLuc Pattyn31-Jan-07 9:37 
GeneralRe: "Window class name is not valid. " in designer Pin
Martin#31-Jan-07 10:42
Martin#31-Jan-07 10:42 

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.