CE .NET was the name used for Windows CE versions 4.0, 4.1 and 4.2. When CE 5.0 rolled around, Microsoft removed the ".NET" part of the name, just as they had removed it from "Windows .NET Server 2003". These days, ".NET" only refers to the .NET Framework or .NET Compact Framework.
For version 6.0 they've inserted another qualifier, so it's now known as "Windows Embedded CE 6.0".
For information on new features in CE 5.0, see here[^].
I am developing windows mobile 5.0 application using VS2005 C#.NET...In treeview how to change the back colour in programmatically...In properties do not have the option...If anybody knows please help me..
I am developing application in VS2005 C#, Windows Mobile 5.
Please help, I have some doubts..
1. How to code for softkeys in Windows Mobile?
2. How to add background image?
3.If I closed the application, its still running at the background,I stop running programs also its still running,I need to remove the battery to shutdown the application.How to avoid this?
4.How to install exe file with icon/logo to Windows Mobile programs collection?
I am a newbie for WM development,So, please bear with my questions.
Thanks in advance
3. PDAs keep the application running unless you explicitly tell it to terminate in your code, or you kill the running process from the Settings | System | Memory control panel.
4. In Visual Studio, Create a CAB setup program. Once the project has been created, there is a place in there to specify a shortcut to the Programs menu. This shortcut can have an icon associated with it. You edit this in the filesystem editor for the CAB setup program. Build the CAB project and then run it on the PDA. When your CAB gets installed on the PDA it will place the icon into the special Programs folder as you expect.
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
1.Wanted to receive the events,same like buttons.As my form is very small and needs to handle many events, I wants to use softkeys to reduce some buttons.
2.Wanted to make the form more colorful.Its Ok I managed to change the backcolor property.
3.Yes,I wanted to terminate the code by explicitly mentioning Applicatio.Exit but its just hanging,is there any other way to kill the process safely(programmatically)?
4.Yes,I have tried CAB program, but after successfully running in PDA,I just can't see my app in PDA?
Sorry for bugging you with so many doubts,thanks a lot.
3. If your app is hanging after Application.Exit() gets called, then there is probably something else in your code keeping it from exiting. Are you using any threads or timers that aren't being terminated before trying to close the application? I have found that when I explicitly call Application.Exit(), it does in fact unload the app as I expect (or at least I've just assumed that and never checked to make sure ).
4. You will need to specify a shortcut in the "Start Menu" special folder. Take a look at this screenshot:
Let me try again on number 1. You said Soft Keys and I'm thinking the whole time you meant hardware keys. Anyhow, here is a little tidbit I found this morning on soft keys in Windows Mobile 5.0:
Adding smart keys to an application is as simple as designing a menu. When designing your application, simply create a menu with only two choices. When the application executes, Windows Mobile 5.0 will map each menu choice to a soft key. Windows Mobile 5.0 automatically provides this behavior to any application containing a menu with one or two choices. Menus containing more then two choices are rendered as a traditional menu.
Thanks a lot for your replies.
3.Yes, I am using System.Threading.Timers which triggers CallBack function events every few secs(Certain time interval) which is communicating with the server.We are using Timer.Dispose when App is closing but it not seems to be working, the requests are still going to server,thatmeans timer is running at the background.
I have used IDisposable interface to dispose the object possesing Timer, but its throwing StackOver flow Exception on disposing which cannot be handled even by Catch block.
After trying all the ways, I finally decided to Kill the Process Programmitically,what do you say?
In .NetFramework there is also a method called Environment.Exit but I cannot find it in .NetCompactFramework.
Please advise me..
The link you have given in 1 (regarding softkeys),page cannot found is coming,please resend.
The Kill method executes asynchronously. After calling the Kill method, call the WaitForExit method to wait for the process to exit, or check the HasExited property to determine if the process has exited.
I am not familiar with Envrionment.Exit(). You'll probably have to use something else, though, since it is not available in the compact framework.
And as far as the link in #1 goes, don't worry about it. If you see my previous post (where I respond to myself), you'll see that I was sending you to look at a link about hardware keys, not softkeys.
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
1. There is codeproject article on capturing hardware key events.
2. You can add a background image to a form by overriding the paint event and using GDI to draw a bitmap on the form. I do this.
3. me.close, then application.exit
If you still have the problem use the debugger to see if the application is hanging during the form's dispose event and determine which object is causing the problem.
I develop own SIP (Soft Input Panel) which should have an opportunity to recognize the symbols drawn on all screen. Like Transcriber, but only for separate symbols. Has collided with 2 problems:
1) Interception of mouse events (can't set global hook)
2) If to draw on screen: GetDC(0)... after drawing it is impossible to refresh screen.
First method (I also tried to use NULL instead of GetDesktopWindow() in all methods)
#define SetWindowRedraw(hwnd, fRedraw) \
((void)SNDMSG(hwnd, WM_SETREDRAW, (WPARAM)(BOOL)(fRedraw),0L))
RedrawWindow(GetDesktopWindow(), NULL, NULL, RDW_INVALIDATE |RDW_UPDATENOW |RDW_ALLCHILDREN);
Whether there are other ways of realization of drawing and recognition on all screen? Thought above creation of a topmost window with copying a contained desktop, but it would be desirable, all the same to make similarly Transcriber
Rest of code:
HINSTANCE g_hHookApiDLL = NULL; //handle to coredll.dll, where all the hook related APIs are present
HHOOK g_hInstalledLLKBDhook = NULL; //g_hInstalledLLKBDhook represents handle to the installed KB hook
//WINCEKBHOOK_API BOOL ActivateKBHook(HINSTANCE hInstance, HOOKPROC LLKeyboardHookCallbackFunction)
BOOL ActivateKBHook(HINSTANCE hInstance, HOOKPROC LLKeyboardHookCallbackFunction)
//we need to manually load these standard Win32 API calls
//MSDN states that these aren't supported in WinCE
SetWindowsHookEx = NULL;
CallNextHookEx = NULL;
UnhookWindowsHookEx = NULL;
//now load the coredll.dll
g_hHookApiDLL = LoadLibrary(_T("coredll.dll"));
if(g_hHookApiDLL == NULL)
//something is awfully wrong
//the dll has to be present
MessageBox(NULL, L"Can't Load coredll", L"Error", MB_OK);
//load the SetWindowsHookEx API call
//the SetWindowsHookEx function installs an application-defined hook procedure into a hook chain.
//You would install a hook procedure to monitor the system for certain types of events.
//here we use use the hook to monitor kyeboard events
SetWindowsHookEx = (_SetWindowsHookExW)GetProcAddress(g_hHookApiDLL, _T("SetWindowsHookExW"));
if(SetWindowsHookEx == NULL)
//this means that MS has really stopped supporting this API in WinCE
//install the KB hook
//the handle needs to be saved for default processing of the events and to uninstall the hook, once we re done with it
g_hInstalledLLKBDhook = SetWindowsHookEx(WH_KEYBOARD_LL, LLKeyboardHookCallbackFunction, hInstance, 0);
if(g_hInstalledLLKBDhook == NULL)
MessageBox(NULL, L"Can't Set Hook", L"Error", MB_OK);
//load CallNextHookEx() API call
//the CallNextHookEx function passes the hook information to the next hook procedure in the current hook chain.
//we use this call for default processing of events.
CallNextHookEx = (_CallNextHookEx)GetProcAddress(g_hHookApiDLL, _T("CallNextHookEx"));
if(CallNextHookEx == NULL)
MessageBox(NULL, L"Can't Call Hook", L"Error", MB_OK);
//load UnhookWindowsHookEx() API
//the UnhookWindowsHookEx function removes a hook procedure installed in a hook chain by the SetWindowsHookEx function.
//we use this call to unistall the hook.
UnhookWindowsHookEx = (_UnhookWindowsHookEx)GetProcAddress(g_hHookApiDLL, _T("UnhookWindowsHookEx"));
if(UnhookWindowsHookEx == NULL)
MessageBox(NULL, L"Can't Unhook Hook", L"Error", MB_OK);
//all the APIs are loaded and the application is hooked
We are using SHNOTIFICATIONDATA to show icon on the upper toolbar on Windows
Mobile 5. But we can't find out how to send a message to our window when we
click on the icon, without showing any pop-up window.
Hi, I need to work with an old database which I think is CEDB (.vol file), I'm developing in VS.Net 2005 (VB) and just need to do some basic bits. I have no idea what I'm doing!!! Any help whatsoever would be very much appreciated.
have been asked to do some maintenance on a mobile app in VS 2005
when i build and runthe app the emulator fires up and reports the following error
"This application (Mytestapp.exe ) requires newer version of the Microsoft .net compact framework than the version installed on this device"
is there a fix for this?
i tried getting the .NET Compact Framework 2.0 Redistributable however it wont install onthe PC when it has VS 2005 on it (!)
how do i work around this issue as i dont have a physical device to use?
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
f you have VS 2005 installed and are developing the app then just connect to the device in VS and deploy it. Make sure your project properties has the
"Deploy the latest version of the .NET Compact Framework (including service packs)" checked. It is found under "Devices".
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
I am SivaRamaRaju working as a .net developer.
In my asp.net mobile web application,I am displaying the list of contacts which are in the database. The problem here is I want to save the list of contacts in the mobile application to PDA (Personal Distal Assistance)
Can anybody help me how can I save these list of contacts to PDA
I am doing my final thesis on bluetooth. I m trying to implement routing and sharing of services in bluetooth scartternet using c#. I need some initial help bcoz I m new to c#. Is there any API and any other resources that can help me.
I have a Embeded VC++ (4.0) application , which builds fine to run on a device having Win CE 4.2 , But when i try to build the same workspace to run on a device having Win CE 3.0. I get a "Platform Manager server failed error".
Do i need to do some configuration settings for the Platform Manager under Tools Menu?
What settings do i need to do?.
You must use eVC 3.0 and an appropriate SDK for debugging/deployment on Windows CE 3.0-based devices. eVC 4.0 only works with CE 4.0 or later devices (you need at least SP1 for CE 4.1, SP3 for CE 4.1 and 4.2, and SP4 for CE 4.1, 4.2 and 5.0 - SP2 added 4.2 support but removed support for 4.1!) There were some changes in the OS's debugging support between v3.0 and 4.0.
It's recommended to install eVC 3.0 before 4.0 if you have the choice, but it should work if you install 3.0 after 4.0.
Download eVC 3.0 from here[^]. That includes the Pocket PC 2002 SDK.
I am writing an pocket pc application (Visual Studio 2005 - C++) and i want to send and receive data to a server application on a desktop machine. I am using win-sockets and i had a problem with connecting. The problem is that the client (pocket pc) could not connect to the server. The code i use for the pocket pc works just fine if its a regular win32 console (or MFC) application. What could be the problem?
I'm developing an application on Win CE 4.2 using Visual Studio .Net 2003.
Just after calling InitializeComponent from the main form's constructor and before any line of InitializeComponent method being processed, the application gives an error (which is not catchable using try-catch block)
Fatal Application Error
Application Terminal.exe has performed an illegal operation and will be shut down. If the problem persists contact the program vendor.
Can anyone tell me how to print out sth. from a pocket pc with windows mobile 5? I´ve searched the web but had no luck. I found this[^] on CodeProject, but i need to print pictures (in colors), too.
Would be fine if you could help me
Been working on a small app that switches the gprs connection when the network is down. The problem lies in disconnecting a gprs connection. The call to ConnMgrReleaseConnection does not work,i have heard that you can use rasenumconnections then call hangup, but i get a constant error message ras error 632 which says the structure size is invalid the code is as follows
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct RASCONN
public UInt32 dwSize;
public IntPtr hRasConn;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 257)]
public string szEntryName;
// create a single rascon array
ConnectionManager.RASCONN connections = new ConnectionManager.RASCONN[maxRasConConnections];
connections.dwSize = (uint)Marshal.SizeOf(typeof(ConnectionManager.RASCONN));
// get the entries for the ras
int concount = 1;
int cb = Marshal.SizeOf(typeof(ConnectionManager.RASCONN)) * concount;
// enumerate the connections
int nRet = ConnectionManager.RasEnumConnections(connections, ref cb, ref concount);
it would seem that the dwsize is incorrect. its size is 540;
the program is designed to run on mobile 5
Connection Manager in Windows Mobile 5.0 is designed not to disconnect an existing GPRS connection. In most countries GPRS connections are charged per byte, not per minute, so it doesn't cost anything to leave it 'connected'. No additional power is consumed by using the GPRS connection over simply having the GSM radio powered on, if you're not actively sending data.
Connection Manager will hang up the connection if asked to create a connection to a different APN.
I can't imagine that disconnecting the underlying connection from underneath the Connection Manager is a good idea. It's not expecting it so pretty much anything could happen. Always be wary of undocumented techniques.
I am creating a PDA application using the CF 2.0 that will use a datagrid and will display time in one of the columns. The column is called "ScheduledTime" and in the sql server 2005 database the datatype is datetime.
I would like to format the time to display e.g. 21:45 24hr format.
I think the datagrid is very limited when using the CF for mobile applications as the property "format" doesn't exist for this. See my code below.
I am wondering is there another way to format time in a datagrid column using the CF 2.0.
Me.grdSupportContracts.DataSource = ds.Tables(0)
Dim dgtbc As DataGridTextBoxColumn
dgtbc = CType(Me.grdSupportContracts.TableStyles(0).GridColumnStyles(3), DataGridTextBoxColumn)
dgtbc.Format 'Doesn't have the format property
I'm working with Windows Mobile 6.0 and I found 3 versions to SDK:
- SDK Windows Mobile 6.0 Professional;
- SDK Windows Mobile 6.0 Standard;
- SDK Windows Mobile 6.0 Classic.
Apparently, the Classic version is to Pocket, Standard version to Smartphone and the Professional version to Pocket phone.
Could I use the Professional version to develop to Smartphone?
Frankly, since Windows Mobile 6.0 is not yet public, you're probably in a better position to answer that than anyone else! Talk to your OEM, perhaps - or if you are working for an OEM, talk to your contact at Microsoft.
I try to realize an automatic connexion between a pocketPC and a home made bluetooth device. The goal is that a pocket pc user don't have to manually synchronize the bluetooth device.
So my C# application search every bluetooth devices around, connect to the one with the good name. With the InTheHand library i success with that.
Then, the problem: I try to open a new COM7 port in order to communicate with the bluetooth device and record this COM7 port into windows settings.
I didn't find anything to do that. So I look in the registry what happen when I manually open my serial port and try to do the same with my C# app.
The 'theory' is ok, it's work, everything is ok in Windows, my device is recorded and my COM7 port is also open and recorded.
But it's impossible to communicate with the bluetooth device...
I have a full documentation about what I did (in french) if someone can help or if someone have an idea...
I have been researching, trying to find a method using activesync to sync a few tables between SQL CE V2 running on a symbol pocket PC 2003 and a SQL 2000 on the server. The problem stems that they won't have access to wireless or internet to use the SQL CE replication. Does anyone have a code sample of how to trigger a sync to activate when the activesync syncs the device?
Last Visit: 31-Dec-99 18:00 Last Update: 1-Jul-16 18:02