compact-framework

Good book for Windows Mobile Development?

Can you recommend a good book for Windows Mobile development? I am using: Compact Framework 3.5 Windows Mobile 6 Professional SDK Windows Forms (WinForms) Thanks. ...

Compact Framework development using C# Express Version

I am wondering if one could use the C# Express version to do Compact Framework development. I've done some Google searches but I can't find a defiant answer. I have installed C# Express but there isn't a project template to select for "smart device" development. I will continue my search but I was hoping that the stackoverflow community ...

New windows mobile project - LINQ to data in .NET CF?

I have to convert a project I wrote a while back in MCL to windows mobile using CF 3.5. I am using Visual Basic and VS 2008. There is not much info out there, and much of what is, is in C#. I am working my way through that right now. What is the best way for data access? I am used to using LINQ to SQL, but that does not seem to be a o...

Please help with my problems retrieving email using POP3 protocol

I am using C# and Microsoft .Net Compact Framework 1.0. I tried to implement the POP3 protocol using the System.Net.Sockets.NetworkStream and TcpClient classes. I am able to log in and receive email and save the attachments with some email servers. But for some, I keep running into problems. I read the size of the email message by sen...

.net - Problems with Array.Sort and Array.BinarySearch - culture and globalization

I need to sort an array containing a list of words and search the same using binarysearch. For certain reasons, the word-list must always be sorted using the sorting-rules of "en-US" i.e. American Regional Settings. The code will run under various international Operating Systems and of course this will mean that the word-list will be sor...

AutoSize for Label / TextBox in .NET Compact Framework

Hi! I'm quite simply going totally bonkers with the omission of the AutoSize-property for the Label and TextBox controls in .NET Compact Framework. I have a simple app, that's supposed to list a bunch of text data (generally between one-liners to a few paragraphs of text) in a TabControl. Everything else works smoothly, but my attempts ...

Prevent Pocket-PC to go to landscape Mode.

Hi, I have a Windows Mobile application (written in C#) that only works on portrait mode. Is there anyway programmatically to prevent the system from automatically rotating my application to landscape mode without having to change Windows Mobile system settings? Platform: Windows Mobile 6.1 Professional ...

.NET Compact framework (C#) : Add checkbox to Listbox

Hi, I would like to add a checkbox control to a listbox control. The listbox has to contain A couple of tasks, and I have to check if a tasks has been opened before. I have a code sample, but it adds the checkbox as an object, not as a control while (reader.Read()) { CheckBox c = new CheckBox().Enabled = fal...

VS 2008 designer "Could not find type...."

I'm getting this error in visual studio 2008 in a Mobile Desktop application .NET 3.5. Could not find type 'MyNamespace.MyType'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. This shows up when openin...

C# - Why can I not cast a List<MyObject> to a class that inherits from List<MyObject>?

Hi All, I've got an object, which I'll call MyObject. It's a class that controls a particular data row. I've then got a collection class, called MyObjectCollection: public class MyObjectCollection : List<MyObject> {} Why can I not do the following: List<MyObject> list = this.DoSomethingHere(); MyObjectCollection collection = (MyObj...

Need a simple way to show a map from an address on .NET Compact Framework

Are there any easy and free methods of showing a map of a location starting from an the address in .NET Compact Framework. I'm fine with opening IE Mobile from my application. ...

Asynchronous WebRequest with POST-parameters in .NET Compact Framework

Hey all. I'm trying to do an asynchronous HTTP(S) POST on .NET Compact Framework and I can't seem to get it working. Here's what I'm doing: private void sendRequest(string url, string method, string postdata) { WebRequest rqst = HttpWebRequest.Create(url); CredentialCache creds = new CredentialCache(); creds.Add(new Uri(ur...

How can I make sure a control is visible when it's inside a scrolling control?

I have a tabcontrol with several tabpages. I also have hooked into the InputPanel.EnabledChanged event so that the tabcontrol resizes when the inputpanel is enabled. What I would like to do is ensure that the control with the focus is visible when the tabpage is resized. What's the best way to accomplish this. Note that I am using th...

What tools are available to generate key-pair, enroll with SCEP, use for TLS server on .Net?

The specification I am working with requires that a key-pair be generated and a certificate be automatically enrolled via SCEP to a specified server and used as both a TLS server and client certificate with OCSP validation of the counterparty. Are there any tools available for .Net to do this sort of thing? Pure-managed code and Compac...

SSL TcpClient C# .Net Compact Framework 1.0

Hi, I am looking for connecting TcpClient over SSL. I am using .Net compact framework 1.0. Is there is opensource (or commercial) library that provides functionality similar to System.Net.Sockets.TcpClient but over ssl. Thanks, Kishore. ...

How to resize columns of DataGrid bound to List<T>, not DataSet?

I'm trying to use a System.Windows.Forms.DataGrid control in my Compact Framework 3.5 Window Mobile Professional 6 SDK based project to show some properties of objects of type Something by binding the DataGrid to a List<SomethingWrapper> instance like this: public class SomethingWrapper { private Something data; public SomethingWr...

CompactFramework 2.0 - forms vs. loading conrols into a panel

I'm writing a WinForms based application for Windows Mobile, targeting the CompactFramework 2.0 and coding in C#. My application has a menu which the user can select severeral job functions from. My question is this: For the job specific screens, should I load a UserControl into a panel in the main form, or is it better to open a new ...

SerialPort + CF 2.0 prevent losing data

Can anyone tell my why the code below would be missing or dropping data. I have been googling all night but can't find any pointers. the serial port is using the following settings; 38400,n,8,1 xon/xoff flow control. ReceivedBytesThreshold = 1. isReceiving and stockReceived are both members of the form private void serialPort1_...

Adding and updating a record programmatically using .NETCF

OK - I have worded this search 40 different ways and I seem to be lost here. Every example I find seems so happy that you can easily drag and drop a datagrid and let the user fill it in -- then they stop! I know how to do everything I am asking through LINQ. That obviously won't translate here. I really should have learned ADO.NET first...

Calendar in Zend Framework

Hello, I looking to create a custom calender with Zend Framework, I am hoping that it will be able to list all the days of the month for the coming years and then have a different bg color on the date if there is an event on this. I am however struggling to create this firstly because it needs to go into the layout view, rather than an...