compact-framework

How can I read an XML file in a Web API app?

吃可爱长大的小学妹 提交于 2019-12-24 09:57:37
问题 If this makes any difference, the XML file is being sent from a handheld device. There are a couple of interesting answers to a similar question here, but I'm not sure the more popular answer really addresses my situation (where the client seems to be passing a custom type (ComputerInfo)) whereas in my case it is an actual XML file is the arg being passed. The second answer looks perhaps more "up my alley/what the doctor ordered" but I don't know what signature my method should have.

Storing custom properties in resx files in Compact Framework

雨燕双飞 提交于 2019-12-24 09:46:50
问题 We are developing a CF application and are making use of the default localization/resource handling in the framework (that is, when editing a form in the designer properties like Text have their value stored in the .resx files and the resource manager and framework loads it for us again in the selected locale using satelite assemblies and a call to ApplyResources in the .Designer file) We have a few custom controls and one of these includes a string property called EditTitle. We would like

Can't connect to SQL Server CE database

℡╲_俬逩灬. 提交于 2019-12-24 08:28:36
问题 I have the following code, just to test connection: public void Test() { SqlCeConnection conn = new SqlCeConnection(@"Data Source=/Application/Database.sdf;"); try { conn.Open(); label1.text = "Connection!"; } catch (Exception ee) { label1.text = "No connection!"; } } When trying to connect to this database, the application throws an exception at conn.Open() saying SqlCeException was unhandled and nothing more. The exception message is blank, so I'm having a hard time figuring out what went

How to update components in different threads? .NET CF

怎甘沉沦 提交于 2019-12-24 07:16:23
问题 I´m programming a .NET Compact Framework application which shows maps on a PDA. I´ve created an ad hoc component that paints it´s own piece of the whole map, using several of this components the big picture is composed. I did it this way to avoid the latency of painting the whole map in a single step. What I would like to do now is to paint this pieces in their own thread, so the map appears to grow as a single entity and (also, and more important) to avoid freezing the rest of the user

The .NET CF ComboBox doesn't have a DropDown event, so what's the alternative?

旧街凉风 提交于 2019-12-24 07:04:23
问题 I'm working on a .NET 3.5 SmartDevice project and I could really use the ComboBox DropDown event, but the .NET Compact Framework version doesn't have it. Is there another way to be made aware of when the list has dropped down? 回答1: I use the GotFocus event to populate the combobox. I keep a boolean variable specifying wether the combobox is populated so it doesn't repopulate the combobox everytime it get's focus. it's a bit ugly, but it works... 回答2: Why would you need to know when they

Set ForeColor & BackgroundColor of each Column For Each Row Separately in .Net Compact Framework 3.5

﹥>﹥吖頭↗ 提交于 2019-12-24 06:38:05
问题 I am developing a Window CE 5 Program With Visual Studio 2008. By using a DataGrid Control in one of my forms, I need to change each row background and forecolor depending on some conditions. for doing this, I use this class: public class ColoredDataGridTextBoxColumn : DataGridTextBoxColumn { public Color BackgroundColor { get; set; } public Color ForeColor { get; set; } public ColoredDataGridTextBoxColumn() { BackgroundColor = Color.White; ForeColor = Color.Black; } protected override void

Compact Framework serial port and balance

蓝咒 提交于 2019-12-24 05:33:21
问题 So, to open up a serial port and successfully transmit data from the balance through the serial port, i need to make sure that the settings on the serialPort object match the actual settings of the balance. Now, the question is how do i detect that the connection hasn't been established due to the settings being different? No exception is thrown by serialPort.Open to indicate that the connection has been established. Yes, the settings are valid, but if they don't match the device (balance)

Anti-aliased rounded corners in Windows CE 6.0

﹥>﹥吖頭↗ 提交于 2019-12-24 04:54:14
问题 I'd like to display a smooth rounded rectangle on an ARM device running Windows CE 6.0. I started with RoundRect, but the result had jagged corners, since Windows CE uses GDI and doesn't support GDI+ as Windows Mobile 5+ does. My current provisional solution has been to create a lot of little corner bitmaps, but since the rest of the GUI design includes transparency, gradient fills, and variable width borders, this solution means creating and managing a large number of permutations of these

Installing my program on Windows CE 5

耗尽温柔 提交于 2019-12-24 03:58:08
问题 I'm in the progress of finishing up an application for Windows CE 5, and I was wondering what the easiest way of installing the application on CE 5 devices would be. Hitting "publish" in VS8 generates an installer, but this installer isn't compatible with CE 5. What is an easy, effective way of installing my applications on Windows CE 5? Edit: Follow-up here. 回答1: The easy way is to just add a new Deployment project to your existing solution. Right-Click your solution and pick Add > New

Uncatchable AccesViolationException

大兔子大兔子 提交于 2019-12-24 03:32:08
问题 I'm getting close to desperate.. I am developing a field service application for Windows Mobile 6.1 using C# and quite some p/Invoking. (I think I'm referencing about 50 native functions) On normal circumstances this goes without any problem, but when i start stressing the GC i'm getting a nasty 0xC0000005 error witch seems uncatchable. In my test i'm rapidly closing and opening a dialog form (the form did make use of native functions, but for testing i commented these out) and after a while