Recommended tips for. Net Compact Framework development

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.