November 7, 2012, 16:56
Although I do not yet know a use case for this, here comes some code to make your smartdevice forms being moveable.
As default, Windows forms on mobile devices are created always as maximized forms. There may be situations, where you need a moveable form. The trick in compact framework is to use SetWindowLong with WS_CAPTION style and apply that to your form.
To enable you to experminet more with Window Styles there is another demo enabling to check all known window stlyes with a form. Be warned, setting WS_DISABLED or some other styles will make your form inaccessible.
Continue reading ‘Mobile Development: Move your Form’ »
November 7, 2012, 16:16
This is a very simple application to show the values of GetSystemPowerStatusEx2 in live view.
That enables you to see how much power is drawn of the battery if you switch WiFi on or off for example.
On industrial devices you can also check the power consumption of special modules like a barcode scanner.
Continue reading ‘Mobile Development: Watch the power of your device, think green’ »
October 19, 2012, 15:46
The attached web server offers some options to control the device or show informations about it. The web server runs on the device and enables direct control or delivers information about the device.
The project enclosed default web page offers all implemented commands. The following is a list of what is currently implemented:
- SystemInfo: get OS version info
- BEEP: let the device beep
- START: starts a process
- KILL: kills a process
- SETLED: light/unlight/blink a LED
- VIBRATE: special LED case, this sets a LED which is a placeholder for the vibrate motor
- SIP: show/hide the Software Keyboard
- SHOW: ShowWindow implementation (show normal, hide, minimize etc)
- ENABLEWINDOW: enable or disable a window
The default web page
Continue reading ‘Windows Mobile – A simple web server with extended features’ »
October 19, 2012, 13:55
This time I combined a set of functions to clear the Start Menu and the Today/Home Screen:
Before
After
Continue reading ‘Windows Mobile: Kiosk mode – Clear Today and Programs’ »