compact-framework

Is there a way to autosize columns in DataGrid .NET Compact Framework

I want to autofit columns to the content in cells. Also i want to add my headers to columns. Is there a way to achieve autosize?(i saw that column headers can be set with DataGridTableStyle) ...

SQLCE 3.5 FIPS compliance on Windows Mobile 6.0

What is the position of SQLCE 3.5 when running on Windows Mobile 6.0 in relation to FIPS compliance. I have read lots of differing reports on this and need a definitive answer, one which comes from a reliable source (please provide links) I have read this "The encryption modes in SQL Server Compact 3.5 are FIPS complaint if FIPS mode i...

Initialize Dictionary in .Net 2.0

Is there a simple way to initialize a dictionary that is a property like in .Net 3.5 or do I need to add the elements in the class's constructor? My aim is to have a static map of codes mapping to string representation. ...

Can I use the .Net CF unhandled exception dialog to display and exception that was caught?

In my .Net 3.5 Compact Framework app I recently added an unhandled exception handler. I did it just so I could add the error to our log file and reboot the system. In certain modes I want to display the error to the user. I find that the messagebox is far inferior for error display than the dialog the CLR would use if I didn't catch th...

Convert image to 1 bpp bitmap in .net compact framework

I have an image of a signature I am trying to save as 1 bpp bitmap to save file space. The full .NET Framework has the enum PixelFormat.Format1bppIndexed, but the .NET Compact Framework does not supported it. Has any one discovered a way to accomplish this in Windows Mobile? ...

OwnerDraw on compact framework controls

Hi, is there way (unmanaged maybe?) how to do the ownerdraw functionality on ListBox/ListView/TreeView controls in Compact Framework? Or is there some another controls (free? paid?) with similar functionaly (kinetic scroll for example)? Thanks ...

Why is there no support for MDI in Compact-Framework?

I recently wanted/thought I need a form with two child forms to switch between according to user's selection of a TreeNode. While searching the web I found this post saying this need is a flaw in my design. Why? Why are multiple dialogs bad for the CF? Doesn't my usage scenario require this? If there is support and it is OK to use thi...

Programmatically scroll the windows mobile window

I have a form that has a number of controls on it (enough that the scroll bar is visible). How can I programmatically control the scroll window? I can fake it now by calling the .Select() method on the last control in the Form, but I'd really like to be able to scroll all the way to the bottom of the window. ...

Adding property fora particular Column in a particular row in Datagrid C#.net

Hi all, I have a requirement like , In the datagrid i can have several checkbox columns. I need to display a warning message for a particular check box , and for some row only. I did code for warning message for that particular check box by setting property for the columns.. Now i m not sure how to apply this for some rows alone. The...

Bring data came from async operation to main thread.

This is a "problem" i have with data that i receive from a library that has some Async operations on sending and receiving data. While i receive data and get data in my Mobile Windows Form or Desktop i need to deal with the cross thread operation. I deal with this while checking InvokeRequired and do Action if true...etc...But, what i re...

.NET Compact Framework: Control over a Control OnMouseDown problem.

Hello! I'm developing a WinForm Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#. I have two custom controls (two classes that inherits from Control). If I click over a specific location of control1 it shows control2 (control2 is a control of control1). In other words, control2 is a pop up menu that it shows over ...

.NET Compact Framework: define default size to a custom control.

Hello. I'm developing a winform Windows Mobile 5.0 or above application with .NET Compact Framework 2.0 SP2 and C#. I'm wondering if there is a way to set a default size of a custom control. When I drop it over the form (on the designer) it is always getting 200x200 as its default size. Any advice? Thank you! ...

.net compact framework load picturebox image from a unc

Using .net compact framework, how do I load an image into a picturebox that is located on a network share? The handheld that application is running on is connected to the network by wifi. image is located on something like \\server\share\image1.jpg ...

Is there a good Semaphore for XNA on the XBox 360?

I'm looking for a fast and efficient implementation of a Semaphore for the .NET Compact Framework. There has been another Question here on SO (Semaphores in .NET compact framework) in which it was suggested to use P/Invoke, but this is not possible in the XNA Framework running on the XBox 360. I can offer two implementations of my own, ...

C# compact framework : load a png alpha blending file

I have a png image file with alpha blending of its own. Now I want to load it onto a form in a mobile. I tried so many ways but not work. Is there any solution? Thanks in advance. This is what I use to load the image from resource: Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("drawObj.Graph.png"); Bitmap myP...

Error when asynchronously waiting for process to exit

I am getting an error with the following code: var p = new Process(); p.EnableRaisingEvents = true; p.StartInfo.FileName = this.CommandLine; p.StartInfo.Arguments = this.CommandArgs; p.Exited += new EventHandler(OnProgramExit); p.Start(); When this code is executed, shortly after the process is started, i get an error within the Frame...

Terminating and Starting Data Connection on Windows Mobile 6.5 in C#?

Heys Guys! Just got a rather annoyingly akward question :S I want to create an easy application for windows mobile devices, i have recently got a HTC HD2 and the connection is being eaten by the weather app, email accounts and windows live service :@ I am getting rather annoyed with this and well i have set myself a project to give m...

Tree Node Checked behavior on a TreeView in Compact Framework 3.5 running on Windows Mobile 6.5

I have been upgrading an existing .NET Windows Mobile application to use the 3.5 version of the compact framework and to run on Windows Mobile 6.5. I have a form with a TreeView. The TreeView.Checkboxes property is set to true so that each node has a check box. This gives no trouble in all previous versions of Windows Mobile. However, i...

Is there a way to obtain the HTML of a web page using the .NET compact framework?

As the WebBrowser control does not expose a get accessor for the DocumentText property you cannot use it to obtain the HTML that was loaded into this control. Does anyone know a way to obtain the HTML as a string? I am using .NET CF3.5. ...

C# CF drag image objec

After drawing a Line, Rect, Ellipse, I want to click onto a shape and move it with mousemove event. How can I get which object is being chosen? Any help? Thanks in advance. ...