Tap and Hold cursor

D

Diane Glasgow

Yes, I do mean the red circles, but I am running a C# program on .net
compact. The only cursors available are Default and WaitCursor.
 
M

Mark McKnight

It worked. I just didn't see it when I copied the code to my own
application :)

Tim Wilson said:
What you added was already there. The declaration for the GetCapture API is
in the region block marked "Native" in the TapAndHoldControl.cs file. This
should work just by running the solution - no changes necessary. Did you run
into a problem?

--
Tim Wilson
Windows Embedded MVP

Mark McKnight said:
This worked perfect for .NET CF! Thanks! The only change I had to make
was to add the following lines at the beginning to make it work for .NET CF:

[DllImport("coredll")]
extern static IntPtr GetCapture();


Tim Wilson said:
Open the solution in the attached zip file and run the application to see
manual tap and hold in action. The code for the custom control is in the
TapAndHoldControl.cs file - this is where the call to the appropriate API
takes place.

--
Tim Wilson
Windows Embedded MVP


Yes, I do mean the red circles, but I am running a C# program on ..net
compact. The only cursors available are Default and WaitCursor.
 

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