Mousedown event for pocket pc

J

juky

Hi all,

I am writing a code in vb .net for pocket pc 2003 and I need to handle
the event mousedown associated to a button. I tried with the following
function but it doesn't fire the event:

Private Sub Botton1_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles Botton1.MouseDown

Moreover if I do the same with a picture instead of a button the
function works properly and catchs the event :

Private Sub PictureBox1_MouseDownP(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown

Any idea about it?

Thanks,

Juky
 
M

Mircea Pleteriu

The Button contrl for CF does not have support for MouseDown event even if
it is displayed by IntelliSense window.
To see the list of supported events create a smart device application form,
drag and drop a button control and open up the Properties window
 
C

Chris Tacke, eMVP

Not necessarily true. Many supported events don't show up in the Properties
window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top