compact-framework

How to display an busy indicator in a long running C# .NET CF 2.0 process?

I need to display a "busy" indicator in a form while executing a long running single command (ReadXML or WriteXML). So far, I'm using Cursor.Current = Cursors.WaitCursor; but I'm looking for a more adqeuate way to do it. There's no need to display the percent done, only a visual reference that the program is working (like a Progress...

How do I export an SQL Server Compact table to an Excel in Windows CE with C#?

I need to Export a table from SQL Server Compact 3.5 Table (*.sdf File) to an excel in Windows CE in a C# application. Can any one please help me? Is There Any easier way then querying all the data and then parsing it to an excel sheet? ...

DateTime.Now.ToShortTimeString adds one hour to it mysteriously :S

I want to add the current date/time to an XML document So i use something like this XmlAttribute receivedDateTime = SettingsFile.CreateAttribute("ReceivedDateTime"); receivedDateTime.Value = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString(); Debug.WriteLine("Adding Date Time in addMessage method : " + Da...

Custom ListView in Compact Framework using C#

I need to develop a custom listview control (ie, i need one Button, some text and a bottom line in each list item) . I am using Compact framework 2.0 and Windows Mobile 6 sdk ...

How do i Export a DataTable to an *.xls file (excel) in C# Compact framework 3.5

i have a table in a C# compact framework 3.5 application that i need to export to an excel that will be used on a regular desktop pc. i already wrote it to an XML successfully if that helps... but i need a .xls file please help... ...

List All Files in a Directory using Dot Net Zip?

Is there anyway in Dot Net Zip that I can use to list all the names of files in a specific directory? For example, i can specify Directory1 and get File3 and File4 etc ZipFile ------- File1 File2 Directory1 File3 File4 Directory2 File5 File6 ZipFile object has only Entries, Entries Sorted, and Entries File Names.....

Getting Started with Windows Phone 7

This is a community wiki list of Windows Phone 7 resources. Feel free to edit/add/etc. General Information App hub - central place for windows phone/xbox development tools/tutorials/info http://www.microsoft.com/windowsmobile/en-us/default.mspx http://developer.windowsphone.com/ http://windowsteamblog.com/Windows_Phone/ Programming Gui...

How do i Export a DataTable to an *.xls file (excel) in C# Compact framework 3.5?

i have a table in a C# compact framework 3.5 application that i need to export to an excel that will be used on a regular desktop pc. i already wrote it to an XML successfully if that helps... but i need a .xls file please help... ...

How do I truncate a file X bytes from the end?

Lets say there is a file which is 150 bytes long and I want to truncate the last 16 (or any number) of it from the end... Is there any other way to do it than re writing the complete file? UPDATE: The SetLength should do the thing, but unfortunately NotSupportedException is thrown using (FileStream fsFinalWrite = new FileStream(File...

Gauges for Compact Framework Applications

Can anybody recommend gauge components for Compact Framework applications? The only gauge toolkit that I've found so far is Perpetuum's Instrumentation Widgets for PDA. Perpetuum's gauges aren't visually appealing to me and also seem to be supported only up to .NET CF 2.0. Are there any alternatives? ...

db4o field indexed, but not used in queries

I have a simple object with a Guid as field public Guid _id, this field is indexed. config.Common.ObjectClass(typeof(ConfigurableObject)) .ObjectField("_id").Indexed(true); When I open the databasefile in the ObjectManager Enterprise, it shows me that the field is indexed! But my queries are damn slow. It takes up to 5!! second...

Exception on Cursor.Current = Cursors.Default;

Hey, I'm developing a compact framework 3.5 application on a windows CE based scanner device. When I'm calling a webservice I'd like to display the wait cursor with Cursor.Current = Cursors.WaitCursor; This works fine. However when I try to reset the cursor to its default state with the statement Cursor.Current = Cursors.Default; ...

Is it possible to do an unstoppable delete in C# ? (Compact Framework)

Given a folder i want to make sure that ALL the files on that directory are deleted. I know there maybe IOExceptions or Access Denied errors but how do just leave them aside and continue with my deletion of the files that I actually can delete? Is this possible? Please shed some light on me on where I can begin ...

Compact Framework call Input Method Options with p/invoke

Hi, I have implemented a p/invoke command in my compact framework based application which invokes the windows calibrate screen. [DllImport("coredll.dll")] private extern static bool TouchCalibrate(); btnAlignScreen.Click += delegate { TouchCalibrate(); }; Does anyone know the p/invoke command to invok...

Start dialer process in dotnetcf 2.0 (WM6)

Hi, I want to bring up the phone dialer from my application. The app is developed in dot net compact framework 2.0 and targeted to run on Windows Mobile 6 devices. I do not want to initiate and handle calls from inside my application. I just want to bring up the native phone dialer on a key press. For example, when I want to bring up bro...

How to get selected row in DataGrid in smartphone applocation?

I am working on a smartphone application, where I have a DataGrid in winform. I want to get the value of cell of the selected row.. ...

Where to place my .sdf file when testing application through Emulator

I am work on smartApplication, Here when am trying to connect to my SQL Server CE 2005 database, I get the exception The path is not valid. Check the directory for the database. [ Path = D:\SmartProject\DBFile.sdf ] My connection string is Data Source=D:\SmartProject\DBFile.sdf;Password=test123 and the code to connect is like stri...

LLBL: Can I use the DatabaseGeneric project with multiple DBSpecific projects

I'm using LLBL in a solution for both MS SQL Compact and "regular" MS SQL 2008.. I'm wondering if it's ok to use the same DatabaseGeneric project (generated by LLBL) & reference it from the 2 DBSpecific projects (generated by LLBL) targeting different MS SQL server editions? I'm planning to test it later, but the projects dependencies...

"Compatibility Pack" for backporting new .NET Framework features?

For various reasons I often find it desirable to write code that is compatible with .NET framework 2.0 or 3.5 or compatible with the .NET Compact Framework, but it is a problem that there are numerous "small" features in new .NET frameworks that are not available in the older frameworks or Compact Framework. For example, I find extensio...

Compact Framework: Unit tests won't hit breakpoints

Hi I'm using VS2008 and building a WinForms mobile application targetting the Compact Framework 3.5 and Pocket PC 5. I'm using the VS unit test functionality and the tests run OK but won't stop at breakpoints. I keep getting the dreaded "breakpoint will not currently be hit, no symbols have been loaded for this document" message. The so...