compact-framework

Can I give an emulator more disk space?

和自甴很熟 提交于 2019-12-11 07:40:36
问题 The compilation of my Compact Framework app (.NET 3.5, VS 2008) failed with this error: Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\hhs\system.data.dll'. Error 0x80070070: There is not enough space on the disk. Selecting Tools > Device Emulator Manager shows me nothing promising; nor does Project > Properties > Devices. UPDATE Vasiliy, is this what you meant? I: 0) Created a folder on my C drive named

Webbrowser in compact framework

雨燕双飞 提交于 2019-12-11 07:34:54
问题 I would like to use a WebBrowser component in a .NET Compact Framework 3.5 project. I am confronted with contradictive information about this. If I just try to use it, I get the following exception: System.Threading.ThreadStateException: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment. at System.Windows.Forms.WebBrowserBase..ctor(String clsidString) at System.Windows.Forms.WebBrowser..ctor() at dce

How can you tell if you're on the Main UI thread? (In CF)

余生长醉 提交于 2019-12-11 07:27:45
问题 Now unfortunately due to the fact that WinCE Usb Device Arrival / Removal exposes itself via WindowsMessages I have to ensure that a certain (non-UI) component is not created on a background thread. I would like to assert this via an exception but am lacking the code for the assertion. This component creates a MessageWindow* and uses it to receive usb arrived/removed messages. The issue is if someone creates this component on a background thread (not necessarily; IsBackground = true) when the

Get List of Installed Applications Windows Mobile (C# Managed)

不打扰是莪最后的温柔 提交于 2019-12-11 07:07:16
问题 I need to get List of Installed Application on Windows Mobile using C#. After that, I want to have capability to get notifications when installed application starts, ends etc. 回答1: When an app is installed by wceload, which is the typical install route, then an entry gets added in the registry here: [HKEY_LOCAL_MACHINE\Software\Apps] So you can enumerate keys and values here to determine what is installed and where in the file system it resides. Getting a notification when an app starts is

How do you move software input panel (keyboard) to bottom of windows mobile screen?

半世苍凉 提交于 2019-12-11 07:03:33
问题 I'm trying to move the keyboard to the bottom of the screen to hide the 35px menu bar that it shows by default on windows mobile 5/6. All of the examples I've seen about modifying the menu bar deal with hiding the button "MS_SIPBUTTON". The two parts of my question are: How can I move the keyboard down 35 pixels on the screen? And, where is "MS_SIPBUTTON" defined? 回答1: Part one: The best way I could muster to move the keyboard was a collection of Windows API calls all referenced from pinvoke

Binary serialization for compact framework 3.5

微笑、不失礼 提交于 2019-12-11 06:56:29
问题 I just realized that CF3.5 doesn't support the binary formatter. I'm using it to send objects over the network and now need to use something else to serialize my data... I heard about Google protocol buffers but found a version that has a bug under CF... What serialization framework is good for CF? Update: I forgot to mention, I need it for a commercial product... so GPL won't help 回答1: There are two that I know of: protobuf-net OpenNxSerialization I've had experience with both (though not on

Why does everything print on the same line, even though I'm adding crlfs?

馋奶兔 提交于 2019-12-11 06:24:04
问题 This will print (although still ugly) on the Zebra QL220 belt printer from my CE/CF app running on a Motorola MC3100 handheld: public void PrintBarcode(string barcode, string UPC, string description, decimal listPrice) { using (SerialPort serialPort = new SerialPort()) { serialPort.BaudRate = 19200; serialPort.Handshake = Handshake.XOnXOff; serialPort.DataBits = 8; serialPort.Parity = Parity.None; serialPort.StopBits = StopBits.One; // other choice is Two (see p. 14-21 in CPCL pdf) serialPort

Why is there no support for MDI in Compact-Framework?

情到浓时终转凉″ 提交于 2019-12-11 06:15:52
问题 I recently wanted/thought I need a form with two child forms to switch between according to user's selection of a TreeNode . While searching the web I found this post saying this need is a flaw in my design. Why? Why are multiple dialogs bad for the CF? Doesn't my usage scenario require this? If there is support and it is OK to use this, can you point me to it? Thanks. 回答1: The CF doesn't support it because the OS itself doesn't support MDI (see the Remarks section in the linked page). MDI

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

c# CF, WinForms and double buffer

主宰稳场 提交于 2019-12-11 05:55:46
问题 I have a CF 2.0 app with a PictureBox on a Form. I want to move the PictureBox with mouse move and I need to add Double Buffer to the form to avoid flickering. How can I do this? Thanks! 回答1: You don't need the Form double-buffered, you need the PB to be. That's not so easy to come by in CF. However, you could create your own control, PB is pretty simple. For example: using System; using System.Drawing; using System.Windows.Forms; public class MyPictureBox : Control { private Image mImage;