compact-framework

Unit testing .Net CF apps on Windows Mobile 6.5.3 in Visual Studio 2008

Did anyone get that to work? I mean, unit testing .Net CF apps on Windows Mobile 6.5.3 in Visual Studio 2008. It works great for a WM 6 Pro target, but not for a WM 6.5.3 target. I get this error: The test adapter ('Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapt...

Animated Gif not displaying in webBrowser control

Hi all, I am trying to put an animated gif on my smart device. I am trying to do this using a webbrowser control. then on the form load i use the following code : String imgPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString()) + "\\PW.gif"; StringBuilder sb = new Strin...

Running out of memory when getting a bitmap from a server?

Hi! I'm making an application which uses MANY images. The application gets the images from a server, and downloads them one at a time. After many images the creation of a bitmap returns an exception, but i don't know how to solve this. Here is my function for downloading the images: public static Bitmap getImageFromWholeURL(String sURL...

Store an image in a SQL Server CE database

Does any one know of an example on how to store an image in a SQL Server CE database? What data type should the column be? (I am guessing binary.) I use Linq-To-Datasets. Is it possible using that to put the image into the database and pull it out again later? Thanks for any advice. Here is how I did it: MemoryStream stream = ne...

Get Taskbar's Battery and PhoneSignal indicators icons and draw into a picturebox

Is there any way to get taskbar's battery and phonesignal indicators icons and then draw into a picturebox or something? Why do I need this? I need all screen space available, so all forms are maximized and they cover up the windowsmobile taskbar. But, I have to display information about battery e phone signal strength in just a coup...

.NET Compact Framework with Visual Studio 2010?

Hello can i use .NET Compact Framework with Visual Studio 2010? I have Visual Studio 2003, but i want change to one IDE. ...

Windows Mobile - Way to invert compact framework controls

I have a screen in my windows mobile app that I is intended for another person than the user to look at and interact with (it is a signature screen). There is a few edit boxes and such on that screen. Is there any way to make them display upside down? If so I would love to hear how. Thanks! ...

How to bold text With Compact Framework

I have an app written in C# for the compact framework (3.5). I am trying to display some text on the form in bold. The Label class does not give me the option to bold my text (I can make it bigger, which eventually gives a bold look, but I want my text 12pt and bold. Is this possible? If so How? thanks for any ideas. ...

Comic ballon like control in Compact Framework ?

Hey all. Im looking to create a control that would look like comic baloon. In WPF i can use rectangle, lines and stuff like that, but in CF this controls dont exist. any idea how could i achieve this? ...

How to get mouseposition when context menu appears?

Hi. I have a panel which holds many pictureboxes. Each picturebox has registered "contextRightMenu" as their context menu. What i want when the context menu pops up is to get the current mouseposition. I have tried getting the mouseposition by using mouseDown and click, but these events happens after one of the items of the context me...

RAPI Approach: 1 static instance for the entire winforms app vs create,connect,dispose

In many places in our application we have code like this: using(RAPI rapi = new RAPI()) { bool connected = TryToConnectWithTimeout(rapi); if(connected) DoSomethingWithRapi(rapi); } This has worked well so far. We never have more than 1 rapi instance at a time. Until now: But now we want to listen for the connect event on rap...

Is there compilation symbol to detect compact framework?

Is there a compilation symbol to detect if it's running on a compact framework platform ...

OpenNETCF Signature control question

I am using the Signature control in OpenNETCF. It works great for most everything I need. However, I need a way invert the signature and load it back in. It has a call to get the "bytes" for the signature (GetSignatureEx()). It returns a byte[] of the signature. This signature can then be loaded back in with LoadSignatureEx(). I ca...

Anyone got Twitter xAuth working with the Compact Framework yet?

This question is related to a number of other questions on oAuth on the Compact Framework (one, two) but seems slightly more specific to me, as it specifically involves getting Twitters xAuth API call (meant for non web applications to be able to do oAuth) working on the Compact Framework. Are SSL HTTP connections and the encryption me...

.NET Compact Framework Connection String encryption/securing

I'm writing an application in C# for a smart device running Windows Mobile 6.1. It's pretty basic. Just querying a database and getting results. Nothing too fancy. This program is only going to be deployed internally, but we still want to be secure with our SQL connection info. What's the best way I should go about encrypting/securing ...

XmlDocument.Load() => XmlException at "percent" char

When I try to load a xmlfile which has the '%' in an attribute, I get a XmlException at the position of the '%'. See at the Example in the tag 'humidity' <current_conditions> <condition data="Klar"/> <temp_f data="63"/> <temp_c data="17"/> <humidity data="Feuchtigkeit: 30 %"/> <icon data="/ig/images/weather/sunny.gif"/> <win...

DateTimeOffset Support in Compact Framework 3.5

Does anyone know if the data type "DateTimeOffset" is supported in the .NET Compact Framework 3.5? ...

Custom Buttons in Windows Mobile SDK 6

Is there a way to change the appearance of a button to use an image in Visual Studio Windows Mobile development. I have tried using a picture box but found the event handler was very slow to execute. Thanks. ...

In Protobuf-net how can I pass an array of type object with objects of different types inside, knowing the set of potential types in advance.

I am trying to migrate existing code that uses XmlSerializer to protobuf-net due to the increased performance it offers, however I am having problems with this specific case. I have an object[] that includes parameters that are going to be sent to a remote host (sort of a custom mini rpc facility). I know the set of types from which the...

.NETCF ShowDialog and RadioButton controls

The scenario... I have two forms, F1 and F2. F1 contains a couple of radio buttons with a single event handler attached to the click event of both. F1 also contains a MainMenu, one option of which opens F2 using ShowDialog(). F2 contains a MainMenu, one option of which sets the DialogResult of F2 to DialogResult.OK, thus closing the di...