windows-mobile

Media Player Control for .NET Compact Framework

烂漫一生 提交于 2019-12-11 06:10:06
问题 Is there any free media player control library that allows us to play videos in a .NET Compact Framework application? We tried the one available at http://www.coppercoins.de/post/2008/11/03/WMP-Part-IIIa-Creating-new-Interop-Assembly-for-Mediaplayer.aspx, but having issues with memory problems and access violation errors. 回答1: Did you look at the MSDN article on ActiveX Hosting? Be aware that it has a bug in it. If you need a player for Windows CE (i.e. not Windows Mobile) there's an open

Windows Mobile 10 Background Task DNS Fails

早过忘川 提交于 2019-12-11 05:59:52
问题 I am running into a problem with my background task on Windows Mobile 10 (build 10.0.14393.82). In my background task, HTTP client is sometimes throwing an Exception with the error (note it seems to happen when the phone is locked): The server name or address could not be resolved The phone shouldn't have an issue resolving the address, since it resolves it fine when running in the foreground. Has anyone else seen this issue, or have any ideas? 回答1: check the IsNetworkRequested property when

Get bitmap of an web page using WebBrowser Control in .net compact framework

試著忘記壹切 提交于 2019-12-11 05:46:50
问题 I am trying out to get the bitmap of web page loaded in web browser control, but found that WebBrowser.CreateGraphics() and even WM_PRINT (DrawToBitmap) message response is also missing in .net compact framework. After searching through internet found one of the .net sample code which gets complete web page in bitmap When i tried porting it through compact framework for windows mobile 6.0 found that most of the API and methods missing. How should i go ahead with it... Any help in this regard

Windows Mobile notification dialog

心已入冬 提交于 2019-12-11 05:06:01
问题 I want to show message dialog like system shows me (i.e. when SMS has arrived or Alarm). I have tried using CeSetUserNotificationEx, but i have no idea, why it always return 0 IntPtr and nothing happens. Could you provide me short and working sample of how to do this with C# and .NET Compact Framework 2.0? 回答1: The message dialog is shown with the Microsoft.WindowsCE.Forms.Notification class, but to know what's wrong with your notification setup code, we need to see the actual code. 来源: https

Accesing WinCE ComboBox DroppedDown property (.NET CF 2.0)

£可爱£侵袭症+ 提交于 2019-12-11 04:37:09
问题 I'm implementing custom behavior sub-classing the form controls, but I cannot manage to access the DroppedDown property of the ComboBox. Looking in the help, it's supposed to be supported in CF.NET 2.0: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace xCustomControls { public partial class xComboBox : System.Windows.Forms.ComboBox { private ComboBox comboBox1; public

Storage Card Problem In windows mobile

纵然是瞬间 提交于 2019-12-11 04:20:04
问题 I m making windows mobile application, it refers some DLL's but i have some problem here. Imagine my application is installed in storage card related DLL's present in Storage card only, if i launch application it refers some of DLL, now i will remove the storage card, still my application will be running,it will not quit only ultimately it leads to restart of my mobile device.. i do get the divice card remove notification but its in DLL and its c++ code.. if card is removed no DLL will be

SQL CE OutOfMemoryException consuming web service

对着背影说爱祢 提交于 2019-12-11 04:14:53
问题 We are continually receiving OutOfMemory exceptions when trying to download documents via a web service. We are storing the documents byte array data as part of a serialized mesage object and the original documents are all ~500kb in size. The only other thing in the message's object graph are two string properties for correlation. We have tried retrieving the document compressed and uncompressed with the same issues. Now I believe that the exception is been raised when trying to deserialize

Am I running on an Emulator or a Device

孤街浪徒 提交于 2019-12-11 04:05:22
问题 Is there a way (using managed code hopefully) to find out if I am running on an Emulator or an actual physical device? I am looking for something like this: public class BarcodeScannerFactory { public override BarcodeScanner GetBarcodeScanner() { if (IsARealDevice()) <---------------------------+ return new SymbolBarcodeScanner(); | else | return new FakeBarcodeScanner(); | } | } | | // This is the method I need to make ----------------+ (NOTE: It occurs to me that Windows Phone 7 has been

Intercept incoming SMS

和自甴很熟 提交于 2019-12-11 03:53:38
问题 I would like to know what are the options for intercepting an SMS. I want to be able to launch some code to handle the SMS when it is received. Any advise on whether this is technically possible and what options I have if there is more than one way, would be greatly appreciated. Thanks Paul 回答1: Since you have so many tags, it's hard to tell which OS you're actually developing for. On the iPhone, you cannot "snoop in" on SMS messages without the help of a patched Kernel (jailbreak). 回答2: I

How to Add options to <SELECT>, in IE Windows Mobile 5

烈酒焚心 提交于 2019-12-11 03:35:53
问题 Trying to programmatically add options to a SELECT drop down in IE Windows Mobile. Because this is IE Windows Mobile 5, most solutions involving getElementID do not function, so I have had to resort to more plain vanilla HTML /Java script, the example below works fine in IE 6 and FF , but fails with "Object doesn't support this property or method" in Windows Mobile 5 function insertBarcodes() { val = document.form1.barcode.value ; i = document.form1.blist.length; myNewOption = new Option(val