Tap and Hold cursor

  • Thread starter Thread starter Diane G.
  • Start date Start date
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.
 
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.
 
Back
Top