Click here to Skip to main content
15,435,077 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to browse Pin
Guru Brahmam Chowdary8-Mar-10 1:52
MemberGuru Brahmam Chowdary8-Mar-10 1:52 
GeneralRe: how to browse Pin
OriginalGriff8-Mar-10 2:02
mveOriginalGriff8-Mar-10 2:02 
GeneralRe: how to browse Pin
Guru Brahmam Chowdary8-Mar-10 2:33
MemberGuru Brahmam Chowdary8-Mar-10 2:33 
Questionhow i can capture that print command is generating Pin
22087-Mar-10 23:52
Member22087-Mar-10 23:52 
AnswerMessage Closed Pin
8-Mar-10 0:19
Memberstancrm8-Mar-10 0:19 
GeneralRe: how i can capture that print command is generating Pin
22088-Mar-10 0:28
Member22088-Mar-10 0:28 
GeneralRe: how i can capture that print command is generating Pin
Richard MacCutchan8-Mar-10 1:12
mveRichard MacCutchan8-Mar-10 1:12 
Questionhow to detect mouse over the picturebox? Pin
Tridip Bhattacharjee7-Mar-10 23:44
professionalTridip Bhattacharjee7-Mar-10 23:44 
it is very easy to detect if someone work with mouse move event of picturebox. but i want to detect mouse over picturebox in mouse move event of the form so first i did set the keypreview property of form to true and then i wrote the code in mouse move event of form.

so my code is ---

private void Form1_MouseMove(object sender, MouseEventArgs e)
{
int X=e.X;
int Y=e.Y;

if ((X >= pic.Left && X <= pic.Left + pic.Width) && (Y >= pic.Top && Y <= pic.Top + pic.Height))
{
lblMsg.Text = "Mouse over picturebox";
}
else
{
lblMsg.Text = "";
}
}

this code is not working. where i am making the mistake. please rectify me.

i tried this with another approach like

private void Form1_MouseMove(object sender, MouseEventArgs e)
{
if (pic.Bounds.Contains(PointToClient(new Point(e.X, e.Y))))
lblMsg.Text = "Mouse over picturebox";
else
lblMsg.Text = "";
}

please help me with sample code.

thanks in advance
tbhattacharjee

AnswerRe: how to detect mouse over the picturebox? Pin
Luc Pattyn8-Mar-10 1:17
sitebuilderLuc Pattyn8-Mar-10 1:17 
AnswerRe: how to detect mouse over the picturebox? Pin
OriginalGriff8-Mar-10 1:29
mveOriginalGriff8-Mar-10 1:29 
AnswerRe: how to detect mouse over the picturebox? Pin
johannesnestler8-Mar-10 3:33
Memberjohannesnestler8-Mar-10 3:33 
QuestionCheck if expath exist Pin
ONeil Tomlinson7-Mar-10 23:12
MemberONeil Tomlinson7-Mar-10 23:12 
AnswerRe: Check if expath exist Pin
Mirko19807-Mar-10 23:42
MemberMirko19807-Mar-10 23:42 
QuestionConvert word file to pdf with openxml Pin
Pankaj Saha7-Mar-10 23:00
MemberPankaj Saha7-Mar-10 23:00 
QuestionWebClient and Events Pin
Teuz7-Mar-10 22:50
MemberTeuz7-Mar-10 22:50 
AnswerRe: WebClient and Events Pin
johannesnestler8-Mar-10 4:17
Memberjohannesnestler8-Mar-10 4:17 
GeneralRe: WebClient and Events Pin
Teuz8-Mar-10 22:01
MemberTeuz8-Mar-10 22:01 
QuestionRecord Not Insert Pin
mjawadkhatri7-Mar-10 21:00
Membermjawadkhatri7-Mar-10 21:00 
AnswerRe: Record Not Insert Pin
OriginalGriff7-Mar-10 21:47
mveOriginalGriff7-Mar-10 21:47 
GeneralRe: Record Not Insert Pin
R. Giskard Reventlov7-Mar-10 22:12
MemberR. Giskard Reventlov7-Mar-10 22:12 
AnswerRe: Record Not Insert Pin
Thomas Krojer8-Mar-10 1:16
MemberThomas Krojer8-Mar-10 1:16 
QuestionCustom TypeConverter for SubProperties Pin
akamper7-Mar-10 20:54
Memberakamper7-Mar-10 20:54 
Questionhow to access the application Pin
santhosh-padamatinti7-Mar-10 20:05
Membersanthosh-padamatinti7-Mar-10 20:05 
AnswerRe: how to access the application Pin
Anubhava Dimri7-Mar-10 20:10
MemberAnubhava Dimri7-Mar-10 20:10 
GeneralRe: how to access the application Pin
santhosh-padamatinti7-Mar-10 20:21
Membersanthosh-padamatinti7-Mar-10 20:21 

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.