compact-framework

SqlCe odd results why? -- Same SQL, different results in different apps. Issue with

When I run this SQl in my mobile app I get zero rows. select * from inventory WHERE [ITEMNUM] LIKE 'PUMP%' AND [LOCATION] = 'GARAGE' When I run the same SQL in Query Analyzer 3.5 using the same database I get my expected one row. Why the difference? Here is the code I'm using in the mobile app: SqlCeCommand cmd = new SqlCeCommand(Q...

How to push data to a .NET CF client?

Although polling a webservice is possible, do you know of another method to push changes to a mobile client except using the exchange server mail transport? ...

Advice on solving OutOfMemoryExceptions for CF

My CF application has a very customized UI, using lots of images as UI elements. The UI feels a lot more smooth when these bitmaps are kept in memory. When they're loaded on demand, the UI is slow and I can see the buttons appearing one by one, which looks very poor. For a long time this went pretty well, but recently I've found the appl...

What is the correct way in C# to download a file from the Internet and write it on the fly?

Edit: This is done in the Compact Framework, I don't have access to WebClient therefore it has to be done with HttpWebRequests. I am creating a download manager application that will be able to have concurrent downloads (more than one download at once) and the ability to report the percentage completed and resume the downloads. This me...

MethodNotFound, singleton class and "optimize code"

I'm writing a .net compact framework app in c#. It was working fine in the development environment but when built in release mode and run by itself, it was throwing MethodNotFound exceptions. I sprinkled a bunch of debug logging code to find out where it was breaking and narrowed it down to a big Init() function. This in turn calls metho...

Compact Framework and ClearType text

Is there a way to use ClearType text in an application using the .NET Compact Framework? ...

How to hide Start button while openning camera using CameraCaptureDialog in windows mobile

How to hide Start button while openning camera using CameraCaptureDialog in windows mobile ...

On what .NET Framework(s) is DotNetOpenAuth available?

Most (all?) OAuth resources - both information about the protocol and code libraries for easily using them in your own applications - one seems to find on the internet seem to assume the application you are using it in is a web application. I would however like to start using OAuth in my windows mobile Twitter client for interactions wi...

In Visual Studio how can I load a .png image from the project Resources folder?

Hey Guys, Thanks for reading! I am trying to develop an application for a windows mobile pda but am having a problem with getting .png images from a resource folder. I have a number of images in the project Resources folder, and all I want to do draw an image box programmatically (i.e just using code) with a background image from the pr...

.NET Compact Framework config files.

Hello! I'm developing a Windows Mobile 5.0 or above WinForm application using .NET Compact Framework 2.0 SP2 and C#. I need to use a config file to store a Web Service's URL and other information encrypted. I've read something about Mobile Configuration Application Block from Mobile Client Software Factory. Can I use this? Is there a...

.NET applications sometimes doesn’t work on Windows CE

Hi, I write applications for Windowe ME and CE in C# .NET 2.0. Sometimes I’ve got problems because applications don’t work on some navigation devices. On Windowe ME it is not problem because .NET can be installed from a cab, but on most Windows CE devices it is impossible because after soft reset all changes disappear. I found out that ...

Compact Framework: Fill Rectangle with solidbrush problem.

In my mobile project, I want to fill a rectangle with semi transparent color. Through documents, I learn that I can create solid brush with color.fromargb(). But the problem is that I can just pass three parameter in the color.fromargb(Red, Green, Blue) instead of 4 params (alpha, red, green, blue). So how can I fix it? I'm working on co...

how to get the browser controle from opennetCF

HI.. i want to get the browser control from opennetCF..can any one please suggest me were i have to download the OpennetCF SDK.. and how to use it to get the browser control from it,, i m new to opennetCF.. please let me know ...

Is there a way to create an image from a given control in the .NET Compact Framework?

I basically want to be able to say "Hey, control give me your bitmap image." using something like Control.RenderToBitmap or using some code. The control in question is a panel with various other controls on top of it. ...

Compact Framework, HttpWebRequest problem.

Hi. I have the following code in CF 3.5, target platform is WinMo6.5 for my HTC HD2: HttpWebRequest req = (HttpWebRequest)WebRequest.Create(new Uri("http://www.somewebsite.com/")); req.KeepAlive = false; HttpWebResponse res = (HttpWebResponse)req.GetResponse(); string content = string.Empty; Stream dataStream = res.GetResponseStrea...

Can I control position of SIP ( Software Input Panel ) in .NET Compact Framework?

Hi, I want to display the SIP, but I want to display it a little higher on the screen than where it shows by default. Is there a way to position the SIP vertically? ...

Windows Mobile Standard: Scrolling and About dialog

My application's About dialog consists of a couple labels, an image and a LinkLabel control (link to my website). My problem is the LinkLable, which is at the bottom of the form, receives focus, so the form scrolls down to it. Since the other controls on the form don't receieve focus, I can't scroll the form. As a workaround, I tried us...

How do I stop Visual C# 2005 crashing when debugging on a windows mobile device?

I'm attempting to debug a .NET Compact framework C# application on a Windows Mobile 6 device using Visual Studio 2005. If execution reaches a breakpoint I have previously set, 9 times out of 10 it crashes. If it doesn't crash first time, that breakpoint will continue working correctly, even through multiple executions of the application....

WCF Interceptor On Compact Framework

I would like to add an interceptor layer to my WCF service to send the Device ID to authenticate the device. I am very very new to WCF Interceptors. Before I take all the time to figure them out, I would like to know if they even work with the Compact Framework. So, do WCF Interceptors work with the Compact Framework and if so are the...

[.NET CF] memory usage of multiple control instance

I am building a application with on WM6.1, few question about the resource control. My app is build by vs2008/.NET CF 3.5 one of the window form, I place only one webbrowser control, and run the program, then open the control panel and view the memory usage of applicationm it grow from 25MB to 29MB,nothing special. After that, I need p...