Dear all,

Could you please help me? I would like to know whether it is the same or not. Is it the same "mouse click" and "mouse Press"? I want to detect the mouse is pressing with API. Which API should I use? I actually want to know the detection although I click outside of the main form. Please give me some suggestion.

best regards,
zawpai

where did u find "mouse press" event???

could u tell ur question more clearly???

check this prog if i didn't wrong to understand your question :

GetMouseButton States.zip

OK. Hope this helps..

commented: add my knowledge +1

Hi Jx_Man & choudhuryshouvi,

Now, I get the result what i want because i use some code given by Jx_Man.
My question is that I want to detect left or right click whether the mouse position arrive outside of main GUI. Eg, If I use Form_MouseDown, it can't detect mouse's click while the mouse's pointer get outside GUI.
I found some API from the internet, but some procedure is wrong. If so, i got the problem. Currently, I solve it.

Thanks all for giving some suggestions and sample code.
zawpai

you are welcome my friend
don't forget to mark this thread solved..
all for the best.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.