compact-framework

Visual Studio problem with deploying all files of .NET Compact Framework application

穿精又带淫゛_ 提交于 2019-12-12 11:23:43
问题 My application consist of an executable project and a dll library. My executable project has added the reference to the library project. The library project contains some "content" files like .ini .bmp. The problem is that these files are not copied to the device when I deploy the executable project. Only dll file is copied. The curious thing is that all files are copied to the \ExecutableProject\bin\Debug directory on the desktop machine. To workaround this I've set the deployment path of

Does SignalR Client run on .NET Compact Framework?

≡放荡痞女 提交于 2019-12-12 11:09:39
问题 I haven't found any documentation on what platforms SignalR supports, and would like to know whether SignalR Client runs on .NET Compact Framework? 回答1: The SignalR .NET client is built the TPL (http://msdn.microsoft.com/en-us/library/dd460717(VS.100).aspx) and only works on .NET 4.0 and above. There was a .NET 3.5 version but we've deprecated it in the latest release. You can certainly write a client for the compact framework but we don't have plans to write one at the moment. 来源: https:/

How to detect Windows Mobile 5 Device Serial Number? (.NET CF 3.5)

假装没事ソ 提交于 2019-12-12 10:18:40
问题 We have several devices where I work (mostly Datalogic 4420 Falcon), and someone is always leaving one off the base. The battery runs dry, then they bring them back to get setup all over. (There's supposed to be a way to configure a file on the SD card to reload upon such an error, but it doesn't work very well) When someone saves changes on the device (using my app that writes data to the SQL Server), the Serial Number is sent along with it so we can track what devices are in use where. Each

Define custom design time editor in a usercontrol (e.g. multiline text) in compact framework 3.5

99封情书 提交于 2019-12-12 09:46:09
问题 In .NET I would just write [Editor(typeof(System.ComponentModel.Design.MultilineStringEditor), typeof(System.Drawing.Design.UITypeEditor))] public string MultiLineText { get; set; } to get the multiline editor for a string property. However, in Compact Framework this is not possible because System.ComponentModel is not included. I already have a DesigntimeAttributes.xmta file and I suppose I have to define it here but I can't find an example on how to achive this. 回答1: The following xmta

.NET CF set 'DroppedDown' for combobox

给你一囗甜甜゛ 提交于 2019-12-12 09:44:55
问题 I want to open a combobox from my program on a mobile program (.net cf 3.5). but there doesn't exist a property like cmbBox.DroppedDown in compact-framework Accesing WinCE ComboBox DroppedDown property (.NET CF 2.0) But I don't want to get the current state, but to set it. How do I perform this? 回答1: You can take the same approach as in the referenced article and send it a Message. Instead use const int CB_SHOWDROPDOWN = 0x14F for your message. From that reference sample, modified a bit:

How to allocate memory in another process for windows mobile

旧城冷巷雨未停 提交于 2019-12-12 09:29:52
问题 I'd like to read the contents of another process listview control in windows mobile. To do this, I need a pointer to some free memory to that process in order to put the values there (and then read them from my process). This can be done in normal Windows or Win32 with the VirtualAllocEx function. However, this function is not supported in windows mobile ! Can you recommend me a way to allocate that memory? 回答1: Well, after a lot of search, I believe that I found a working solution. I am not

Get return value from pressed button

亡梦爱人 提交于 2019-12-12 09:08:53
问题 I have a form that pops up at a specific event. It draws up buttons from an array and sets the Tag value to a specific value. So if you are to press or click this button the function should return the Tag value. How can I do this? And how do I know which button was clicked? At this moment the code returns DialogResult, but I want to return the Tag value from the function. How shall I modify my code so that it can do this? public static DialogResult SelectBox(string title, string[] btnArray,

Is there an event in compact framework that fires on suspend and resume?

半腔热情 提交于 2019-12-12 09:04:24
问题 Or do I have to pinvoke native code? I don't want the power status...well I do, but I don't want to poll it all the time and would rather have an event fire. 回答1: No there is not. Generally an application is completely unaware of the power state. When the device suspends, code simply stops executing. When you resume, it starts again at the exact spot it left off. You can hook into the power management system to get notifications, though be aware that you don't have time to actually react, so

Is there a reliable way to keep Compact Framework and Desktop projects in sync with Visual Studio 2008?

邮差的信 提交于 2019-12-12 08:58:56
问题 I am working on an SDK that is targeting both the Full/Desktop .Net Framework and the Compact .Net Framework. As such I have a solution that has projects for the Compact Framework and the full framework. The project files contain the same source files, or thay should. Some of the developers that are working on this SDK with me are only working on the full framework side. From time to time they add a file to the full framework projects, but forget to add it to the compact framework project.

How to validate X.509 Certificate in C# using Compact Framework

落花浮王杯 提交于 2019-12-12 08:44:25
问题 I am trying to validate an X.509 certificate using C# and .NetCF. I have the CA certificate, and if I understand correctly, I need to use the public key from this CA certificate to decrypt the signature of the untrusted certificate. This should give me the computed hash value of the untrusted certificate. I should then compute the hash of the certificate myself and make sure the two values match. I've been playing with this for a few days and I'm not getting very far. I've been using the