locked
mousedown event plz help RRS feed

  • Question


  • if i want to define a condition where a certain message box appears to user
    only when he clicks the mouse left click and when the click is inside a a certin rectangular area 

    if ((e.Button == MouseButtons.Left -->> how can i add the other condition ?????
    {
     MessageBox.Show(.....);

    }


    another question is about the message to be displayed
    i want to display a value that results from subtracting the y coordinate the mouse is located at from another value
    so when i write ( 700 - e.Y ) it gives me conversion type errors 

    ps: am a beginner :$
    please help
    • Changed type DivineParty Friday, February 5, 2010 7:20 PM
    Friday, February 5, 2010 7:03 PM

Answers