PriyankaG

I need to provide nudge support in my application. The phone should vibrate: keeping in view the settings(profile) of the phone. How can i acheive this If anyone has worked on it....

Can we vibrate the phone programmatically



Re: Smart Devices VB and C# Projects Nudge support in Win Mobile SM

PriyankaG

There is a dll called "OpenNETCF.Notification"

OpenNETCF.Notification.LED l = new OpenNETCF.Notification.LED();

//turn on vibration

l.SetLedStatus(1, OpenNETCF.Notification.LED.LedState.On);

//turn off vibration

l.SetLedStatus(1, OpenNETCF.Notification.LED.LedState.Off);

This works !!!





Re: Smart Devices VB and C# Projects Nudge support in Win Mobile SM

Guang-Ming Bian - MSFT

Hi Impetus,

You can also P/Invoke the NLed APIs in coredll.dll, how to use the API , click the link below:

http://msdn2.microsoft.com/en-us/library/aa917805.aspx

And this issue has also been discussed a lot in the forum:

http://forums.microsoft.com/MSDN/Search/search.aspx words=vibration&searchKey=&lcid=1033&searchscope=forumgroupscope&siteid=1&ForumID=-1&ForumGroupID=11&GoButton=+Go

Best regards,

Guang-Ming Bian - MSFT