windows-mobile

How do I keep a Windows Mobile Professional Device in the Unattended Power State

I have a .net 3.5 application running on windows mobile professional that uses sql server ce 3.5 and merge replication with sql server 2005 sp2, it not yet a 1.0 product. Every couple of minutes or so it starts a merge replication using a timer control. I suppose down the line I'll have to have some kind of push senario, either using l...

How do you get the current directory in compact framework?

How do you get the current directory where your app is running? ...

How to add a button to a compact framework DataGrid?

Is it possible to add a button to a column in the DataGrid for the compact framework? So far the only thing I can find is you can add textbox and that's it. What would be a good alternative to a DataGrid that can allow other controls? ...

Windows Mobile 5 SDK Button Control

I'm a fairly novice programmer working on my first Windows Mobile application. I see that there is no button control available for my program. I've never created a custom control before, and I understand that is the only way that I can get a button for my application (it is a requirement as per my client). I was wondering if someone c...

Changing Keyboard Layout on Windows Mobile

Hi, In the application there is a dialog where only numeric string entries are valid. Therefore I would like to set the numeric keyboard layout. Does anyone know how to simulate key press on the keyboard or any other method to change the keyboard layout? Thanks! ...

Graphing or charting in windows mobile 6

Do you know of a [free] library for graphing or charting, similar to Zedgraph, but that works for developing on windows mobile 6? ...

How to populate SYSTEMTIME value?

On Windows Mobile (but I guess it's the same on Windows) in a native C++ app, how would I go about setting a SYSTEMTIME structure correctly? Assuming I have int year, month, dayOfMonth, hour, minute, second; I obviously should set the wHour, wYear, etc members of the SYSTEMTIME structure, but what happens with wDayOfWeek in that case...

How to automate importing certificates on a Windows CE device?

I'd like to automate importing cert(s) on a Windows CE device. Pushing the certs down to the devices is not a problem, but once they are there I cannot determine how to import them without using the UI. (I'm currently using Avalanche Mobility Center) ...

Strange issue running infinite while loop in EXE

I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing some work every 8 minutes unless exit event is signaled. 2)Second exe doing some work every 5 minutes unless exit event signaled. 3)Third exe while loop is running and in while loop it do some work at random times. This while loop continues until exit event signa...

View SMS in Windows Mobile via Managed Code

In the Windows Mobile SDK, there is a MessagingApplication class in Microsoft.WindowsMobile.PocketOutlook that has a method "DisplayComposeForm" that allows you to bring up the default compose dialog for sending an SMS. I need a way to display the default message viewing dialog from managed code. I.e. i've retrieved the message via MAPI...

Event Handler for Minimize and Maximize Window

Hi, I am developing an application for PocketPC. When the application starts the custom function SetScreenOrientation(270) is called which rotates the screen. When the application closes the function SetScreenOrientation(0) is called which restores the screen orientation. This way the screen orientation isn't restored if the user minim...

Can you specify the folder VS will use when debugging mobile apps?

Hitting debug will deploy the application to \program files\AppNamespace\AppName.exe and attach to it. However, my app runs on the storage card \SD-MMC Card. This means I'm debugging and running in different places, so I have a slight maintenance headache. Therefore the question is, anyone know if you can specify the folder VS will use...

Smartphone-style ComboBox behavior on PocketPC platform?

I develop applications for the PocketPC platform (.NET Compact Framework 2.0 and higher), and one of the problems I constantly run in to is the drop-down width for ComboBox controls is not wide enough to show very long string values. I've run across P/Invoke methods to widen the dropdown width, but what I'd really like to have is the Sm...

Why Virtualize the mobile ??

Virtualizing the mobile is way different from virtualizing the server or the desktop, where in the the hardware components are almost standardized [like the keyboard, mouse , usb, LAN etc] so the hardware could be easily abstracted for any of the OS. While on a mobile there is a multitude of hardware [like the iphone touch screen, stylu...

How do you display the "cannot connect" dialog in windows mobile when a webservice URL is unreachable?

Hi. On windows mobile when there is no internet connection and I try to browse the web using internet explorer i get cannot connect information at the top of the screen. It says cannot connect with current connection settings. To change your connection settings, tap settings. And I am able to tap Settings and setup network connections. ...

How do I set Network Management settings or make the dialog appear in C# on Windows Mobile?

In Windows Mobile, when you open Internet Explorer and type in a URL that your device can't connect to, you are notified of this and prompted to (manually) navigate to the screen where you can actually do something about this as a user (Network Management), like so: However, if a .NET Compact Framework application tries to connect to ...

How to ensure a mobile app is deployed to the mobile device?

We just ran into a problem where everything was compiling correctly, but not being deployed to the mobile device during debugging. Of course this caused weird errors that were hard to track down. The solution was simple, just delete the directories on the mobile device. Is there a way to ensure/force the files to be deployed every tim...

custom dialog with a text field in winmobile

I'm looking to have a simple custom dialog box, like a message box, that has a label and a TextBox. If there's a simple way to do this, sorry! I'm really not well versed in the dialog stuff. Thanks for any help, guys! ...

Screen Rotation on Pocket PC

Hi, I am developing an application for pocket PC which should run in landscape mode. I wrote the function SetScreenOrientation(int angle), which rotates the screen. This function is called on application start and on application close. I want to change the screen orientation when I minimize/maximize orientation as well. To do this I ed...

How to estimate the thread context switching overhead?

I am trying to improve the performance of the threaded application with real-time deadlines. It is running on Windows Mobile and written in C / C++. I have a suspicion that high frequency of thread switching might be causing tangible overhead, but can neither prove it or disprove it. As everybody knows, lack of proof is not a proof of op...