compact-framework

What are the requirements for running .net application on windows ce5?

What are the requirements for running .net framework targeted application on Windows CE 5? If I try to start an application that I developed for Windows Mobile 6, I will get the following error. Cannot find 'Projectname' (or one of its components) Make sure the path and filename are correct and that all the required libraries ...

How can I connect to server using SSL(secure socket layer) on .NET Compact Framework

Hello. I want to change .NET framework v3.5 to .NET compact framework v3.5. But I can't change SSL Stream class to compact framework version. For resolving this problem, I already read some article and msdn library. http://blogs.msdn.com/cgarcia/archive/2009/08/21/enable-ssl-for-managed-socket-on-windows-mobile.aspx http://blogs.msdn....

How to retrieve path for a file embedded in Resources (Resource Manager)

I am trying to retrieve file path for a html file that is embedded in resource (resx file) in VS2008 C# project. I want to give path of this file to native webbrowser control (PIEHtml) to be able to navigate (DTM_NAVIGATE) in my application. I know I can pass the string to this control using DTM_ADDTEXTW but since html text size is so bi...

how to create a custom message filter in c#

Yesterday I asked a question about starting an application hidden on windows mobile : See Here According to ctacke's answer I want to create my own message pump to prevent Application.Run method to show the form, but I don't know how to do that. It would be OK if you can show me an example on how to create a custom message pump in c# or...

SqlServerCE Compactframework inserts data in table as per the ordinal position of the fields

I Have a strange problem with SQLServerCe on compact framework Following is my code Using cmd As SqlServerCe.SqlCeCommand = New SqlServerCe.SqlCeCommand("INSERT INTO Employee (EmployeeName,EmployeeCode) Values (?,?)", cn) cmd.Parameters.Add("@EmployeeName", "Sachin") cmd.Parameters.Add("@EmployeeCode", "1001") mReturn = cmd....

How is it possible to get the forms mouse position when clicking inside a control?

Hi. I have a panel and have added a PictureBox to it. I have added mouse_click listeners to both the panel and the picturebox. When they are clicked i create a messagebox which tells me the mouse position. Problem: When i click the panel, i get the mouse position i want. When i click the pictureBox, i get the current position in t...

Upgrade SQL CE 2.0 database to SQL CE 3.5 database

Has anybody performed the upgrade? If yes, how is it done. I remember tinkering with running a program on command line on the PDA and that it did not work as expected. Has running the command line program on the PDA worked for anyone? ...

Is it possible to store controls(Panel) as object, serialize it and store it as a file?

The topic says it all. Using Compact Framework C# I'm tiling (order/sequence is important) some images that i download from an url, into a Panel(each image is a PictureBox). This can be a huge process, and may take some time. Therefor i only want the user to download the images and tile them once. So the next time the user uses the ...

OpenNETCF.Stopwatch -> only ticks changing, not Elapsed

I've been trying to track down a bug I thought was thread-related, but I think instead there is an issue with the way I am using OpenNETCF's Stopwatch. I am using OpenNETCF.IoC in my application, but for the sake of simplicity I moved the following code directly into a view: public partial class WorkoutView : SmartPart { ... private S...

Intercept minimize event on windows mobile (compact framework)

I want to intercept minimize/maximize events for a windows mobile 6.1 application in c#. Is there a simple way to achieve this. (A piece of code as an example would be great). I need to know when the user plays with my application or the application runs in background. ...

Solving a cyclical dependency in Ninject (Compact Framework)

I'm trying to use Ninject for dependency injection in my MVP application. However, I have a problem because I have two types that depend on each other, thus creating a cyclic dependency. At first, I understand that it was a problem, because I had both types require each other in their constructors. Therefore, I moved one of the dependenc...

How to Convert WAV file int MP3 file in C# NETCF(windows mobile)

How to Convert WAV file int MP3 file in C# NETCF(windows mobile)???? Maybe somebody know how to do it? ...

ShowDialog returns immediately after a handled exception in .net compact framework

The problem I am having is that for some reason ShowDialog returns immediately after handle an exception. However, it works for MessageBox.Show() or at the second time I call ShowDialog. What is the best workaround for this problem? I was only able to find this. And I cannot believe that no one else has this issue. I am using .net comp...

How to flush DNS cache in Windows Mobile programmatically?

Hello, My windows mobile application (written in C# with the compact framework) needs to know if a particular machine is active or not. To achieve this goal, I thought to use a ping mechanism. I tried to use the Ping class implemented in the opennetcf framework (the System.Net.NetworkInformation.Ping class for the .NET Framework is no...

sync Framework for Compact Framework

Has anyone got sync framework to work on a mobile device as a sync mechanism in place of RDA or Merge replication? If yes, could you point me to any resources available. If one was to start a green field compact framework based application, what would one use as the sync mechanism (sync framework/RDA/Merge replication/any other...)? T...

How to Handle UriFormatException in standard Web browser control in .Net Compact framework

I have developed a browser in my application using the standard Web Browser control. It is throwing URIFormatException and the application crashes when navigating to some sites like "WWW.oosai.com" and also on clicking back or forward buttons when there is no internet connection. I tried handling the exception but it is not working tr...

How to restict the open file dialog box in CF.Net

How to restict the open file dialog box in the device which supports winows compact framework and also need to restict the download option in win CE browser ...

Opening XNA Xbox 360 assemblies in Reflector

I'd like to get a look at the differences between the Xbox 360 and Windows XNA assemblies. I know the 360 runs the .NET Compact Framework and I was under the impression that Reflector could read CF assemblies, but when I open them, all of the methods are blank and no internal classes are shown. Is this done on purpose, or is it a limita...

How to raise a System KeyDown event manually in .Net Compact framework 3.5

I have developed a custom keypad using resco controls in my application I have currently handled the backspace button click event with the following code private void customKeyboard1_KeyboardKeyUp(object sender, Resco.Controls.Keyboard.KeyPressedEventArgs e) { if (e.Key.Text == "Backspace") { ...

custom progress bar in net compact framework

Hi all, I want to have my own progress bar in .net compact framework, instead of default wait cursor. I have tried with a form, having only a progress bar, and showing and hiding the form when I want to show some background activity running, but that does not update the progress bar. I have found out that it needs to be on different thr...