compact-framework

How to get exact RGB values for 24-bit image in .NET Compact Framework?

Hello, I have a 24 bit BMP image, but when I load it on my Pocket PC using Bitmap object and do GetPixel, it returns me slightly wrong RGB values. I guess it converts it to 16 bit on the fly. I get the same results when using LockBits and working with the bitmap data directly. Is there any way of getting exact RGB values for given pixel...

Change UI culture programmatically in WinCE 5 / .NET CF 2

In a standard .NET framework application (not CF), I can change the user UI culture with: System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("es-AR"); System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture; but the .NET CF...

How to preload class libraries in Dot Net Compact Framework?

Lets say i load Form1 and then it shows buttons which let me access Form 2,3 and 4. Now, when i click the button to load Form2, I can see that it takes a bit of time to load a few class libraries (.dll) which makes the UI look unresponsive. I don't see the form until the class libraries are loaded which makes the Form1 to still be sho...

Running Compact Framework 1.0 Application On Windows Mobile 6.1 And Windows Mobile 6.5

I have a application developed based on Compact Framework 1.0. I can run it, on Operating Systems that version number is smaller than Windows Mobile 6.1 But I can't use it on Windows Mobile 6.1 and 6.5. Before installing app, I install these cabs: 1 - netcf.all.wce4.ARMV4I 2 - sqlce20.ppc.wce5.armv4i 3 - sqlce20.dev.ppc.wce5.armv4i ...

How to run a function on a background thread for Windows Phone 7?

Hi All, I'm using MVVM Light to build a WP7 (Windows Phone 7) application. I wish to have all the work performed by the Model to be run on a background thread. Then, when the work is done, raise an event so that the ViewModel can process the data. I have already found out that I cannot invoke a Delegate asynchronously from an WP7 app....

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

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 curiou...

How do I programmatically show the waiting icon on Windows Mobile 6?

Hi, How do I programmatically show the waiting icon on Windows Mobile 6? It should be easy to do, but I could not google it since there are so many waiting icon replacements out there... :-) Thanks, Adrian ...

Start application hidden in Dot Net Compact Framework

I am trying to make my application load hidden when windows loads. I have created a shortcut with a parameter and I am trying to hide the form if the parameter equals to "WINDOWS". But the Form is ALWAYS shown regardless I hide the form or set the visibility to false. How do i get about doing this? [MTAThread] static void Main(s...

Transfer file from Windows Mobile device to...anywhere

I can't seem to find a solution to this issue. I'm trying to get my Compact Framework application on Windows Mobile 6 to have the ability to move a file on its local filesystem to another system. Here's the solutions I'm aware of: FTP - Problem with that is most of the APIs are way to expensive to use. HTTP PUT - As far as I have been...

Help me solve this Threading issue with GPS

I have a GPS class which i obviously use to acquire the latitudes and longitudes. The UpdateData() is called when the gps state or location is changed. So i make sure that both the Latitude and Longitude is valid and then i make the DataReady bool equal to true. So i use this code in a fairly n00b fashion where i use a Timer (Windows ...

Can another application access a private key stored in a key container using RSACryptoServiceProvider?

I am using RSACryptoServiceProvider to generate public/private key pair and using cspParameters object to store it in a key container. My problem is that after i store the private key in a key container, can another application access the key container and retrieve the private key i generated? If yes, the security of the key is compro...

User-friendly Windows Mobile installer

Hi, I'm looking for a way to create a small installer for Windows Mobile 5.0 and higher applications that contains my software and loads appropriate .NET CF 3.5 CABs. At the same time I also do not want to bloat my installer unnecessarily. The .NET Compact Framework 3.5 redistributable is over 33 MB large. Is all of this really require...

Threads - ResetEvent and WebClient

Code: public string GetTextWebRequest(string url) { WebClient cl = new WebClient(); cl.DownloadStringCompleted += new DownloadStringCompletedEventHandler(cl_DownloadStringCompleted); cl.DownloadStringAsync(new Uri(url)); are.WaitOne(); return _textdata; } void cl_DownloadStringCom...

load assembly dll to appDomain in compact framework 2.0

Hi everyone, Here is explained how to load dlls in separate domain for full framwork http://stackoverflow.com/questions/2069006/how-to-load-an-assembly-into-different-appdomain-on-windows-mobile-net-cf It is not completely clear to me whether this still can be done in .NET CF 2.0 ? If not, what are alternatives if I want to free some...

DirectShow.NETCF & HD2

Hi, The getMediaTypes() of the DirectShowNETCF.Camera.Camera() return no data on an HTC HD2. As someone any idea of the reason ? Regards Stéphane ...

using SqlCEResultSet.Seek with composite keys in SQLCE

Hi can someone show me how I can use the SqlCeResultSet.Seek method with a composite index? I am trying to seek on orderno+product code my sqlce table has the following index: CREATE INDEX orderline_idx ON OrderLines ( orderno,item ) My seek code is public bool SeekDeliveryLine(string delnote,string item) { bool isF...

Serializing an object containing a Bitmap i .NET Compact Framework

I am writing a project for Windows mobile 6 (.NET CF 3.5). My project contains a class that looks like this: class MyClass { private Bitmap picture; //... and some other fields ... public MyClass () { picture = new Bitmap (/*Picture file path*/); //... } } To my surprise, I found out that there is ...

Partly crashing application? How can I catch uncatchable exceptions?

I have a program written in C#, running on a Windows CE device (on Compact Framework). It processes minimal user actions (button clicks), uses serial port and TCP/IP communication. The problem is: sometimes the software shuts down on it's own. Well, at least the main form can't be seen any more. In the background the application (or par...

after i make some query's in WinCE - the program start to be heavy.....

hi after i make some query's in my C# program (Windows-CE)-the program start to be heavy..... i use: dsView.dispose() and dsView.clear() or Cmd.dispose() after and still the program work's very slow after 20-30 query's ds = new DataSet(); SQL = "SELECT * FROM MyCount where Name = '" + txtMakat.Text.Trim() + "'"; ...

Querying GPS location (only long. & lat.) from WM6 phone using .NET CF

Hello there, I am looking for a very simple solution of how to retrieve GPS data from WM6 cell phone. I am not looking for a GPS wrapper library (Google seems to find ONLY GPS libs...). I'd appreciate just a piece of code which does exactly this: start gps, retrieve long and lat, end gps. Nothing more. I guess with .NET Compact Framework...