1. Get the current path of the application
Copy codeThe Code is as follows:
System. IO. Path. GetDirectoryName (System. Reflection. Assembly. GetExecutingAssembly (). GetName (). CodeBase
The file system in Mobile is a file system starting from the root directory and only supports absolute paths.
For example, if the.txt file under the root directory is stored, the path is @ "\ Storage Card \ a.txt ".
2. Call another program
Copy codeThe Code is as follows:
Process Start (string fileName, string arguments );
Process Start (ProcessStartInfo startInfo)
3. Avoid multiple windows of an application in the task manager.
If there are multiple windows in the program and the show () method is used, the task manager will have multiple windows. You can solve this problem by using hide () and show; however, the performance may be poor;
Set the title (Form. Text) of the inactive Form to an empty string so that only one Form is displayed in the task manager.
Many of the software provided by the system do not exit the function and have to end in the Task Manager. The x in the top right corner of ppc is only up-to-date, and the form is not close (); the general practice is to set the MaximizeBox of the main form to flase (default value) to x, other forms to MaximizeBox = true, and close () when it is disabled ()
4. Access networks from Simulators
After you press set, activesync connects the simulator to your PC. The simulator can access the Internet or your pc and your LAN machines.
If you still cannot access the network, try to change the system settings in your simulator-connection settings-select Network Connection
5. Analog memory card of the simulator
Simulator File-configure, select a folder on the pc in the shared folder below, and click OK. The Storage Card directory appears in the simulator resource management;
6. simulate a call or text message
Set windows mobile 6 sdk/tools/celluller emulator. The simulator is as follows: reset soft Simulator
7. Memory Card Name
In each configuration, the name of the memory Card is different. Some are called Storage Card and some are called memory Card. You can obtain this value from the registry:
\ HKEY_LOCAL_MACHINE \ System \ StorageManager \ Profiles \ SDMemory \ Folder
8. Release
. Net cf 2.0.
C: \ Program Files \ Microsoft. NET \ SDK \ CompactFramework \ v2.0 \ WindowsCE \ wce500 \ armv4i \ NETCFv2.wm. armv4i. cab
Web SQL mobile 3.0
D: \ Program Files \ Visual Studio 2005 \ SmartDevices \ SDK \ SQL Server \ Mobile \ v3.0 \ wce500 \ armv4i \ sqlce30.ppc. wce5.armv4i. CAB