windows-ce

Is WebClient really unavailable to .NET 3.5 CF?

早过忘川 提交于 2019-12-02 17:54:14
问题 My app targets Windows CE; it uses the Compact Framework I copied over some elsewhere-working code that uses WebClient, but it won't compile, saying, " The type or namespace name 'WebClient' could not be found (are you missing a using directive or an assembly reference?) " I do have a "using System.Net;" Because of that error, I also get, " The name 'HttpRequestHeader' does not exist in the current context " The code is: private static void SendXMLFile(string xmlFilepath, string uri) { using

Add CAB file to the OS design

倖福魔咒の 提交于 2019-12-02 17:49:06
问题 I need to add the CAB file (my installation) to the OS Design and I can't find a way to do that. I need it for Installing the program automatically when the OS loads for the first time. I'm talking about win compact 7. Can you help me? 回答1: I'm a bit confused. Why would you add the CAB to the OS design and have that unpack on run? If you're creating an OS and you want it to include the app, why not just use the BIB and REG files (PLATFORM or PROJECT) to just put your app's files and registry

Windows Mobile Device center stops working after Windows 10 1703 upgrade

元气小坏坏 提交于 2019-12-02 17:11:37
i just installed new Windows 10 version (1703) and now i'm not able to connect any Windows CE device because Windows Mobile Device center 6.1 doesn't run. I tried to reinstall it but there is no way, the install process stops. Do i have to downgrade to a previous version of Windows? Is there a workaround for this situation? Thanks for your advices regards UPDATE: Some good suggestions which seem to work are now at this web page. https://social.technet.microsoft.com/Forums/office/en-US/9cab3e8e-6cc4-48e4-8ed9-d595bc83f04b/windows-mobile-device-centre PREVIOUS: I am able to get Windows Mobile

How can a SQL Server CE database be simultaneously connectable and un-?

人盡茶涼 提交于 2019-12-02 16:09:34
问题 I have a SQL Server CE database in my Windows CE app. I can see it (HHS.sdf) in my project in Server Explorer: ...but the Columns folders for the tables won't expand; clicking them gives me: The path property for HHS.sdf reads: Data Source=Mobile Device\Program Files\hhs\HHS.sdf If the path is not valid, why is Server Explorer showing me the database at all? If I create a new connection in Server Explorer (by selecting "Add Connection..." from the Data Connections context menu), I can

Win CE 6.0 run-time image after booting turns black screen

假装没事ソ 提交于 2019-12-02 14:16:14
问题 What can be the cause of my Windows CE 6.0 installation to turn to black screen after initial loading ? I built the Win CE 6.0 myself. After initial screen displaying Win CE 6.0 logo with progress bar reaching 100% the screen turns black. Is there any way to debug, test or emulate the run time image before deploying. I have not a real hardware in my development environment to test it. I just built the image and sent to the client for testing. I based the Win CE image on Board Support Package

How do I use HtmlDocument in CF3.5

蓝咒 提交于 2019-12-02 13:30:30
问题 I'm working on a Device that runs on windows CE and i need to automate a login process. I was able to achieve this in a Forms Application using the code below but it doesn't seem like I can use the same process on the smart device. Is there a way to do the same thing while working in CE? string butts = webBrowser1.Url.AbsoluteUri; HtmlDocument doc = webBrowser1.Document; HtmlElement userValue = doc.GetElementById("username"); userValue.SetAttribute("value", "user"); HtmlElement passValue =

Identify who invokes Event Handler

房东的猫 提交于 2019-12-02 12:24:41
问题 I have my app with my labels written to centralize when its text was modified. To make that I invoke a method through an EventHandler. I want to use same method to each one of my labels, but I don´t know how to identify in the method which label invoke it. If I have a code like this: lbl_TextChanged(object sender, EventArgs e) { ..code.. label1.Location = new Point("label's location"); ..more code.. } and I invoke again that method from another label, how could I modify that code in order to

In what format does SqlCeConnection expect its connection string arg?

百般思念 提交于 2019-12-02 11:56:42
问题 I have a call to SqlCeConnection.Open() that's failing. The exception message I'm getting is pretty generic: "System.Data.SqlserverCe.SqlCeException" (more generic than pretty) The pertinent code is: private DBConnection() { try { string conStr = "Data Source = " + filename; string cmpStr = conStr + ".tmp"; if (File.Exists(filename+".tmp")) File.Delete(filename+".tmp"); engine = new SqlCeEngine(conStr); if (File.Exists(filename)) { } else { engine.CreateDatabase(); } engine.Dispose(); objCon

How can a SQL Server CE database be simultaneously connectable and un-?

那年仲夏 提交于 2019-12-02 11:37:39
I have a SQL Server CE database in my Windows CE app. I can see it (HHS.sdf) in my project in Server Explorer: ...but the Columns folders for the tables won't expand; clicking them gives me: The path property for HHS.sdf reads: Data Source=Mobile Device\Program Files\hhs\HHS.sdf If the path is not valid, why is Server Explorer showing me the database at all? If I create a new connection in Server Explorer (by selecting "Add Connection..." from the Data Connections context menu), I can navigate to the .SDF file on the device (\Program Files\hhs), test the connection in the "Add Connection"

Is WebClient really unavailable to .NET 3.5 CF?

廉价感情. 提交于 2019-12-02 08:58:47
My app targets Windows CE; it uses the Compact Framework I copied over some elsewhere-working code that uses WebClient, but it won't compile, saying, " The type or namespace name 'WebClient' could not be found (are you missing a using directive or an assembly reference?) " I do have a "using System.Net;" Because of that error, I also get, " The name 'HttpRequestHeader' does not exist in the current context " The code is: private static void SendXMLFile(string xmlFilepath, string uri) { using (var client = new WebClient()) { client.Headers[HttpRequestHeader.ContentType] = "application/x-www