compact-framework

Dns.GetHostEntry returns wrong IP addresses on Windows Mobile

This is on a handheld connected to my computer via USB, using the Compact Framework: When I call Dns.GetHostEntry("") or Dns.GetHostEntry(IPAddress.Loopback) to get the IPAddresses of the handheld, I get the IPAddresses of my host computer. But when I send a packet from the handheld to my computer, they come from a different address. ...

.NET Compact Framework 3.5 animated transparent wait cursor

I would like to display a "wait cursor" to the user when they have to wait for something to load. The cursor should be an animated series of bitmaps. I can use a UserControl that I can add to a form, but the UserControl is not itself transparent. I took the code sample available here (http://www.microsoft.com/downloads/details.aspx?Fa...

"Could not establish secure channel for SSL/TLS" in .NET CF application on smart phone

I have a stubborn communications issue with an application running on the .NET Compact Framework 3.5 on Windows Mobile smartphones. I am constructing a web request using this code: UTF8Encoding encoding = new System.Text.UTF8Encoding(); byte[] Data = encoding.GetBytes(HttpUtility.ConstructQueryString(parameters)); httpRequest = WebRequ...

return Identity in SQLServer Compact

How do you get the identity column value after an insert in SQL Server Compact 3.5? ...

C# How do you lock columns in a DataGrid on Windows Mobile 5.0?

Hi, I am trying to freeze columns in a DataGrid in C#. By freezing I mean making the column always visible even when horizontal or vertical scrolling occurs(as in Excel). My target platform is Windows Mobile 5.0 with 2.0 .Net Framework. Is there any easy way to do this? Thanks, Mark ...

How can I create a finger scrollable Textbox in WM 6.5?

Hi everybody. I just noticed something weird in WM 6.5 emulators. Unlike 6.1 where finger panning kind of worked, the only way to scroll a Textbox appears to be through scrollbars. This behaviour is in contrast to what they have done for comboboxes: they are now gesture-friendly without the programmer's intervention. I.e. the user can ...

Visual Studio 2008 - Deploy two projects to device.

I have a solution with two mobile projects. When I hit deploy only one of the app gets deployed to the device. The output of the second project is a dll. ...

Windows Form Components Access

What is the best way to access components (e.g. imagelist, timer) from a form instance? I am working on multi form windows forms application on .NET Compact Framework version 3.5 SP1 with C#. I have a Controller class associated with each form for MVC implementation. Here is my sample Controller class. public class Controller { pu...

c# .Net CF Form.Invoke raise ArgumentException

Hello I am receving an ArgumentException from the following code, I am struggling to understand it the last entry in the stack trace is System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess,...

What is the IsNested equivalent compact framework?

What could I use in replace of IsNested since it is not supported in the compact framework? ...

Transferring Data Between Server and Client (Mobile)

Scenario: Client (Mobile) - .Net CF 2.0, SQL CE 3.0 Server - .Net 2.0, SQL Server 2005, Web Service Client and Server database schemas differ. From server - only certain columns from certain tables need to be synced. From client - everything will need to be synced once client has made changes. Client will continually poll a web ser...

Windows mobile application background problem

Hi There, I'm new mobile development and i'm working on an proof of concept application on Windows Mobile 6.0 Os and CF 2.0 I tried to design new backgorund for my application with the Adobe Photoshop, i found a tutorial on the codeproject.com about solving the windows mobile fullscreen problem and app image background issue with Pinvo...

Unregister a DLL on a Pocket PC

I demoed a control (from MooseWorks) for my Pocket PC app. I used the demo control in my app to see if it would work. It worked great and we have now purchased it. I took the old (demo) dll out of my project and added the new one in. I also deleted it off the device and did a clean build. But the demo dll (with a nag screen) is still ...

Block phone useage on a Windows Mobile 5 device

I am developing a Windows Mobile app that my company is providing the devices for. We do not want our users to use the phone that is part of the windows mobile device. Does anyone know a way to block phone usage? If it matters, the device type is a Symbol MC-70. Thanks in advance for any input. ...

Looking for a control for selecting a directory in Windows Mobile (using .NET Compact Framework)

Looking for a control for selecting a directory in Windows Mobile (using .NET Compact Framework). I can find an open and save dialog, but nothing for selecting a directory. Ideally, I'd like this to target the 2.0 framework, but I'm flexible. ...

Custom Controls via BitBlt / Alphablend Functions --- Help I'm confused

Platform: Windows Mobile 6 Classic / .NET CF 3.5 Problem: Custom Controls, that display alphablended images do not behave well with images on Parent control. Also, hidding and show such controls induces flicker when parent has many images to redraw. More Details: A custom button Control that displays an image with transparencies. I us...

IoC/DI Container in a Windows Mobile Appication

Should I have any concerns about using a IoC/DI Container, specifically ninject, in a windows mobile app using the compact framework 3.5? ...

Keep a Windows Mobile Console App Running

I have a windows mobile app that look like this: class Program { static void Main(string[] args) { RunHook runHook = new RunHook(); } } class RunHook { private HookKeys hook; public RunHook() { hook = new HookKeys(); hook.HookEvent += EventForHook; } private void EventForHook(Ho...

Non-terminating / non-blocking Windows Mobile App

I have a console app that I want to run continually in the background. I thought that if I started it up and then told it to wait things would work. But when I have it wait, it freezes the application. Here is my code: class Program { static public ManualResetEvent StopMain; static void Main(string[] args) { ...

C# PInvoke VerQueryValue returns back OutOfMemoryException?

Hi, Below is the code sample which I got from online resource but it's suppose to work with fullframework, but when I try to build it using C# smart device, it throws exception saying it's out of memory. Does anybody know how can I fix it to use on compact? the out of memory exception when I make the second call to VerQueryValue which...