windows-mobile

WIndows Mobile 6 SDK - string.Split and StringSplitOptions - can't find

大兔子大兔子 提交于 2019-12-12 05:41:42
问题 I try to do the using System; "some/String".Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) but the compiler can't find the StringSplitOptions enum. How to fix it ? 回答1: Windows Mobile uses .NET Compact Framework, which does not support StringSplitOptions. The only String.Split overload implemented in the Compact Framework is Split(Char[]). 来源: https://stackoverflow.com/questions/31835127/windows-mobile-6-sdk-string-split-and-stringsplitoptions-cant-find

Tell the OS to reload the power timeout values from the registry

假装没事ソ 提交于 2019-12-12 04:31:05
问题 I have some code that I am using to update the amount of time the device will wait before going to sleep. I update the registry and then try to tell the OS to reload the value, but it is not working. (The reload part does not work. The registry updates fine.) I am going to post my code in the hopes that someone knows what I am doing wrong: // Change the amount of seconds that the OS will wait before it goes to sleep. public void ChangeBatteryTimeout(int timeoutInSeconds) { // Attempt to open

Windows Mobile - Updating GPRS settings using C#

余生颓废 提交于 2019-12-12 04:08:05
问题 I am using the following code to update the APN settings on a Windows Mobile MC67 device: XmlDocument configDoc = new XmlDocument(); configDoc.LoadXml( "<wap-provisioningdoc>" + "<characteristic type=\"CM_GPRSEntries\">" + "<characteristic type=\"Connection_Name\">" + "<parm name=\"UserName\" value=\"web\"/>" + "<parm name=\"Password\" value=\"web\"/>" + "<characteristic type=\"DevSpecificCellular\">" + "<parm name=\"GPRSInfoAccessPointName\" value=\"APN_Value\" />" + "</characteristic>" + "<

Windows Mobile - Creating a Device Independent Bitmap by Size in CF.NET

大憨熊 提交于 2019-12-12 03:39:55
问题 I've been fighting with my rendering (OutOfMemoryException When Creating a Large Bitmap in CF.NET) for a while, and I'm still looking for a good way to fix my issues. My engine creates a single large bitmap (2x or 3x bigger than the size of the screen), and draws everything to that surface. I then draw that image onto the screen at an offset, allowing the user to scroll VERY smoothly. This works great most of the time, but some users encounter OutOfMemoryExecptions when creating that large

capturing the enter key on textbox in asp.net for windows ce

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:21:40
问题 I want to capture the enter key on text for windows ce msie6.0 but there is no button for that so i cannot use default button property for the form tag itself. What else i can do to capture the Enter key? Thanks.. 回答1: I have used this function javascript in IE6, not sure if it will work in Windows CE <script language="javascript"> document.onkeydown = myOnkeydown; function myOnkeydown() { var key = window.event.keyCode; if (key == 13) { //13 is the keycode of the 'Enter' key //do stuff } } <

Play Flash file under WinCE?

耗尽温柔 提交于 2019-12-12 03:19:27
问题 Is it possible to play a Flash file under WinCE? I know there is a player for Windows Mobile, but WinCE seems to not have one. It seems like you can license a player from Adobe for WinCE but I have not had any luck getting information from Adobe. I found this post that mentions using a AxShockwaveFlashObjects using C# and .NET Compact Framework. Does anybody have any experience with this? 回答1: You need Adobe Flash Lite, which is licensed from B-Square. 来源: https://stackoverflow.com/questions

How do you navigate out of a ComboBox on a Windows Mobile Device without a TAB key?

≯℡__Kan透↙ 提交于 2019-12-12 03:19:20
问题 I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose UI requires the use of a ComboBox control. Unfortunately, for devices with neither a hardware fullsize keyboard nor a touchscreen interface, there is no way to move (tab) from the ComboBox control to another control on the same form (say, specifying a product in the ComboBox and then moving to a text field to add a quantity). I've tried creating an event handler for the ComboBox's KeyPress event and

The right way to build a c#'s app (CF .NET 3.5), i need advice

£可爱£侵袭症+ 提交于 2019-12-12 02:52:35
问题 Over the past two years I developed apps for the CF .NET 3.5 to be runned on warehouse's portable device(windows mobile). From the beginning I just jumped into the process and made a lot of mistakes that I'm gradually correcting. What has came out are apps made in this way: a main form to start the whole process which automatically creates a data-form, that will stay alive for the whole time. This data-form will keep all the datas that the user will insert or request from the server. The

How to detect Network type on Win Mobile

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:47:06
问题 I spend lot of time searching how to determine the current network type such as WIFI, 3G, Ethernet. But I cannot find any information online in windows platform. I want to detect the Ethernet network type, but I cannot find any API that can retrieve the network type. I've find Connection Manager for keyword but there's less information. Did anyone have any idea? Please help me...I was blocked by this for 2 weeks. Thanks. 回答1: Look in the registry key HKLM\system\state\connections , there is

Exception while accessing RfcommDeviceService from a wearable in UWP

泪湿孤枕 提交于 2019-12-12 01:54:45
问题 Here is what I have, A bluetooth wearable (MyoArm band). Windows Mobile 10 with anniversary update. Both of them are paired properly. Now, here is what I am trying to do, I am trying to enumerate the list of all services exposed by the bluetooth device connected to my windows mobile. I would then like to read input streams, if the service provides one. I went though MSDN documentation and here is what I have done so far. P.S. I have added Bluetooth access to the capabilities in the