compact-framework

C# Deleting Directories

泄露秘密 提交于 2019-12-02 11:38:42
I'm working with the .NET Compact Framework 3.5 and want to delete some specific folders and their subfolders. When I run the app it gives IO exception . I've tried to use Directory.Delete(path) method but it didn't work. How can I solve this problem? Here is my code : using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Collections.Generic; using System.Windows.Forms; namespace Reset_Client { static class Program { static void Main(){ myfunc(); MessageBox.Show("Cihaz resetlendi!"); } public static void myfunc() { string mainPath = @"\Storage Card\deneme";

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"

Windows Mobile App - Play Stream Over MMS Protocol?

不羁的心 提交于 2019-12-02 11:13:33
NOTE: This question is being reasked because I accidentally clicked Community Wiki in the previous one, and obviously that didn't provide enough incentive in the form of reputation for people to answer it. Here is a link to the old question, please do not duplicate those answers (they weren't exactly helpful anyway): Link to Original Question Now here's the question... I'm trying to write a Windows Mobile app targeting Windows Mobile 6.x that will stream an internet radio stream delivered via MMS protocol (just one feature among other things). Does the .NET Compact Framework have built-in

Why is this function returning nothing, although there is a match?

这一生的挚爱 提交于 2019-12-02 10:20:16
I am calling this (Compact Framework - this code runs on a Windows CE handheld device) method: public static List<string> GetXMLFiles(string fileType, string startingDir) { const string EXTENSION = ".XML"; string dirName = startingDir; var fileNames = new List<String>(); try { foreach (string f in Directory.GetFiles(dirName)) { string ext = Path.GetExtension(f).ToUpper(); string fileNameOnly = Path.GetFileNameWithoutExtension(f); if ((ext.Equals(EXTENSION, StringComparison.OrdinalIgnoreCase)) && (fileNameOnly.Contains(fileType))) { fileNames.Add(f); } } foreach (string d in Directory

Why am I getting, “Unable to connect to the remote server”?

梦想与她 提交于 2019-12-02 10:09:44
This err msg is the next one I get after resolving “NotSupportedException” as noted here I don't even reach the break point in the server code (set on the first line of the method that should be getting called). This is the relevant server code: [Route("api/PlatypusItems/PostArgsAndXMLFileAsStr")] public async void PostArgsAndXMLFileAsStr([FromBody] string stringifiedXML, string serialNum, string siteNum) { string beginningInvoiceNum = string.Empty; // <= Breakpoint on this line string endingInvoiceNum = string.Empty; XDocument doc = XDocument.Load(await Request.Content.ReadAsStreamAsync()); .

Exception after upgrading .net compact framework version

百般思念 提交于 2019-12-02 09:00:36
I have upgraded my project from .NET 2.0 to .NET 3.5 through visual studio Project-> Upgrade Project . After upgrade when i compile the project i got the error 'The type 'System.Windows.Forms.DataGridTableStyle' exists in both 'c:\Users\VijayVignesh\Desktop\AGMobile4\Dll\Other\System.Windows.Forms.DataGrid.dll' and 'c:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.Windows.Forms.dll''. Typically two dlls are refernced in my project System.Windows.Forms.dll and System.Windows.Forms.DataGrid.dll . So, i decided to remove System.Windows.Forms.DataGrid.dll from the

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

Start Bar Shows Up Over Maximized Form (Pocket PC 2003)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 08:33:44
问题 Environment Windows XP SP3 x32 Visual Studio 2005 Standard Windows Mobile/Pocket PC 2003 .NET Compact Framework 1.0 SP3 and .NET Framework 1.1 Honeywell Dolphin 9500 Handheld Barcode Scanner Goal I have a three form application and an external class (Program.cs) that has the application entry point, Main() . The main form loads first and then, from within MainForm_Load(...) , instantiates/shows a new form kind of like a splash screen. I want all three forms to be maximized. All three forms

How to add image icon to title bar and hide bottom bar in Compact Framework.?

守給你的承諾、 提交于 2019-12-02 08:26:01
1) I want to add an logo(Image) in the Form Header. How do I do that ? 2) In the windows phone a bottom bar appears with the sign of a keyboard. How do I remove this bar as I am using my custom keyboard. ? Title Bar josef The bottom bar can be 'removed' by removing (set to null) the mainmenu of the form. The caption bar (top bar) can not be latered easily, it is shared between all windows on the Windows Mobile device. The screen shot shows a windows mobile screen of windows mobile 6.x before 6.5. Is this your target device using. I ask as the start menu icon will move to the bottom of the

OpenFileDialog does not browse the folders under .NET CF

余生颓废 提交于 2019-12-02 07:32:13
问题 I have an WinMo app and I would like to open a file from the storage card. The file is NOT in the root but within the folder structure. I thought OpenFileDialog would do the trick just as it does under regular .NET. But it does not offer me to navigate over the folders. I looks really lame. Or am I just outstandingly stupid? 回答1: The OFD in the CF, to put it bluntly, sucks. It has the ability to only browse a few select folders, and as a developer you have no control over what they are. To