compact-framework

Windows Mobile 6.5 file system crash Motorola MC55 when running .NET CF 3.5 application

只愿长相守 提交于 2019-12-13 03:22:20
问题 I have issues with .NET CF 3.5 application on Windows Mobile 6.5 on Motorola MC55 device. We have around 150 devices which run a barcode scanning application written in C# Compact Framework 3.5. The application is for barcode scanning and communication with SOAP WebService through WIFI/GPRS. Every day around 10-15 devices go corrupted (file system errors) and need to be flashed again. Motorola support claims it is a fault of our application. For us this is not an argument. What can be source

.NET CF 3.5 SetTimeZoneInformation problem

霸气de小男生 提交于 2019-12-13 02:49:16
问题 I want to programatically set time zone in C# CF 3.5 application. The reason I want to do this is the fact that the application is installed on hundreds of Motorola MC55 devices and some of them get periodically discharged. After charging, the timezone device timezone is set to some "exotic" value not equal to my time zone (UTC+1 Warsaw). I use OpenNETCF.WindowsCE.DateTimeHelper.SetTimeZoneInformation API to set the timezone. I get the OpenNETCF.WindowsCE.TimeZoneInformation object by getting

Bluetooth human device interface for reading digital input channels

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 02:34:22
问题 An idea is to make Win Mobile phone become super alarm for car. Now I am searching for devices simalr to Velleman interface board, but I need device which can be connected to mobile device using bluetooth trough compact framework and C#. I need digital inputs for caching real events such as engine started or door opened. Is there a way to interface mobile device with outside world using inputs with voltage. 回答1: First off you need a custom piece of hardware that will hook in to the ECM of the

Create Spreadsheet in .NET Compact Framework 3.5

血红的双手。 提交于 2019-12-13 02:13:03
问题 I hope this is not a repetitive question; I've searched on the site but I was not able to find anything. As the title say I would like to create/edit spreadsheet on a .NET Compact Framework project. On desktop project with the full size framework I use, with pleasure, ClosedXML but if I try to use this I get multiple errors so I'm searching for an alternative. I have found a commercial option (TMS Flexcel Studio for .NET) but I was wondering if there is something free to use. I know that I

Why am I getting a “NotSupportedException” with this code?

让人想犯罪 __ 提交于 2019-12-13 00:10:02
问题 I am trying to call a Web API method from a handheld device (Compact Framework) with this code: // "fullFilePath" is a value such as "\Program Files\Bla\abc.xml" // "uri" is something like "http://localhost:28642/api/ControllerName/PostArgsAndXMLFile?serialNum=8675309&siteNum=42" SendXMLFile(fullFilePath, uri, 500); . . . public static string SendXMLFile(string xmlFilepath, string uri, int timeout) { uri = uri.Replace('\\', '/'); if (!uri.StartsWith("/")) { uri = "/" + uri; } HttpWebRequest

C# Winform dynamically load usercontrols by name

懵懂的女人 提交于 2019-12-13 00:03:43
问题 I want to know if it's possible to dynamically load user controls? This is some code to show what I mean: public void Load() { Reset(); if (_host.User == null) return; int _count = 0; String[] _applications = _host.User.Applications; if (_applications == null) return; foreach (String _application in _applications) { TabPage _page = null; switch (_application) { case "SF01": _page = new TabPage(); _page.Text = "SF01"; _page.Controls.Add(new SF01(_container)); break; } if (_page != null) {

Strategies for cell editing inside DataGrid

扶醉桌前 提交于 2019-12-12 19:44:22
问题 I am trying to find solution for DataGrid in .NET Compact Framework, for cell editing. Is it even possible to edit cell in default DataGrid in .NET Compact Framework in Windows Mobile, and how to do this? If it is not possible, what is another solution, maybe some other control if there is free. 回答1: No, you can't. From the source: In the .NET Compact Framework, you cannot directly edit the contents of the DataGrid at run time. You must bind controls, such as a TextBox, to your data source

A problem in c# using Threads and ListView

半城伤御伤魂 提交于 2019-12-12 17:22:23
问题 I have a text filter where in the TextChanged event I launch a listview populate code this way: ThreadPool.QueueUserWorkItem(new WaitCallback(populate)); Then in the populate method I have code like this listView1.BeginUpdate(); listView1.Clear(); // rest of the code listView1.EndUpdate(); but the listView1.BeginUpdate() call gives the following exception: System.NotSupportedException was unhandled Message="An error message cannot be displayed because an optional resource assembly containing

Semaphores in .NET compact framework

℡╲_俬逩灬. 提交于 2019-12-12 16:15:19
问题 Unfortunately, there is no Semaphore in System.Threading when using the .NET Compact Framework. I'm not sure why that is, does anyone have an idea? After googling I've found a bunch of people giving their own implementations, but none of them really worked great... or at all! So I've come to ask the experts... Does anyone have a good semaphore class/library they can recommend for the .NET compact framework? OR Is there someway I can emulate the behaviour? I have a typical producer/consumer

Find the focused control in a form (in .netCF)

不想你离开。 提交于 2019-12-12 13:36:20
问题 I have a form that I want to know which control on it has focus. How can I do this? Best solution I have seen has me iterating all the controls on the screen. While doable, it seems like a lot of work just to know which control has the focus. 回答1: It looks like THIS is the way to go on CF. 回答2: You can either do what thelost said, or you can implement your own form base class to handle the task for you. public class BaseForm : Form { public BaseForm() { this.Load += new EventHandler(BaseForm