compact-framework

Web-services calls locks up when network connection lost.

I write GUI application on c# for .NET compact framework 1.0 SP3 platform that uses web-services to retrieve data from our server. When I go far away from access point the connection is lost and next web-service call locks up whole application. Every call surround by try{...}catch{...}, but as far as I can see in logs process never retu...

Getting Number of Displayed Lines in Multi-Line Textbox in the Compact Framework

I have a multi-line textbox that typically displays very long strings (license agreements, for example), and a requirement around the display is that if the user "pages" through the text via the vertical scrollbar (not clicking the arrows or the scroll box, but clicking above or below the scrollbox), on the last "page" the first line mus...

How can I minimize a form by code on .NET Compact Framework

Under the .NET Compact Framework, there is no FormWindowState.Minimize value. How can I minimize my application, so that it remains active and available, but gives back the focus to the previous application? ...

Reading from the serial port in C#

I have tried using Readline() and data gets dropped, I tried using Read() but I am not sure how to have an error proof method of doing it, since I may get several packets one after another and I have no way of knowing that there is going to be another packet coming in. In between packets BytesToRead is 0, so I can't use it. When reading ...

Form layout is not visible in visual C# for Smart Device->Windows CE 5.0->Device Application project

I am developing an application for windows CE 6.0. When i start a windows CE 5.0 device application project, IDE shows me the form in the solution explorer but there is no form layout in the designer. Instead, it appears as a control similar to openFileDialog control. The same problems does not occur if i try it on a windows applicati...

How to use softkeys without softkey / menu bar on Windows Mobile 6?

Hi, does anybody know if it is possible to use the softkeys on a WM 6 device (Motorola MC 35) without actually displaying the bottom bar / menu bar? I have a full screen Compact Framework app where I want to use the soft keys but I do not want the bottom menu bar displayed (would be a waste of screen space). Unfortunately the soft keys ...

Using Aforge.Net library in .Net CF application?

Can a desktop .net library [Aforge.net] be used in a .Net CF 3.5 application? I agree that the CF is a subset and all... that certain functions etc will not work... but the error i am getting is baffling... AForge.Imaging.Filters.ResizeBilinear resizeBilinear = new ResizeBilinear(240, 320); Bitmap new1 = resizeBilinear.Apply(new System....

Server-generated keys and server-generated values are not supported by SQL Server Compact

I just started to play with the entity framework, so I decided to connect it to my existing SQL Server CE database. I have a table with an IDENTITY(1, 1) primary key but when I tried to add an entity, I've got the above-mentioned error. From MS Technet artice I learned that SQL Server Compact does not support entities with server-g...

.net cf 3.5 treeview Checkbox for the given node only

Treeview in .net cf 3.5 pocket pc app If we enable checkbox it will be displayed for all nodes, i want to show check box for childs of some nodes only. Is it possible ? i found some windows forms apps doing custom draw in drawnode event. But there is no drawnode event in .net cf treeview. ...

How to hide the hourglass icon in C# (.NET Compact Framework)

Hi, does anyone have an idea how to hide the hourglass icon when you execute an application from another? E.g. App-A with pretty background screen starts App-B. While App-B is loading windows puts this ugly grey block with the rotating hourglass in the middle of App-A. I have tried calling System.Windows.Forms.Cursor.Hide(); but that...

Paypal integration with pocket PC application for Windows mobile 6.0

I'm developing a pocket PC application for Windows mobile 6.0 and I want to use Paypal. Should i use Web Browser control for this. I need to know the entire process and flow to implement PayPal to my smart device application. ...

Frameworks for location-aware mobile applications?

A mobile device like a Windows Mobile cellphone/PDA is by definition used from many kinds of locations, and should adapt accordingly. If I'm at home, I'd like it to switch to my local WLAN rather than using 3G or GPRS. If I'm in a meeting, I'd like it to be on silent buzzer rather than a loud ringtone. If I'm in a noisy environment, I'd ...

Getting a specific Time Zone in .net CF 3.5?

I'd like to have a World Clock on my PocketPC. Getting the Local Time is no problem, and getting the UTC Time is even less a Problem. But I seem unable to get a specific Time Zone? Say I want the current Time Zone for New York, not knowing if it's Daylight Saving Time or not (so I do not know if it's Eastern Time (GMT-5) or Eastern Dayli...

Debug .NET Compact Framework app locally (without emulator or device)

I am currently in the preparation phase for a new project that will be developed with .NET Compact Framework (2.0 or 3.5, we'll see) and will run on a custom Windows CE 6 hardware. There is, however, one thing I can't get to work: Debugging seems to be possible only with a physical device or with the emulator. But when I just start the ...

how to detect plugin usb in compact framwork

I want to attach a tracking box that has a serial port, with a serial to usb lead to a windows mobile. Is there anyway to detect usb plugin when i connect windows mobile device with tracking box through USB? ...

Recommend book on bluetooth in Windows Mobile

I will be doing some work that involves using bluetooth in Windows Mobile. As I have very little experience of Bluetooth, and no experience of Windows Mobile I was hoping that someone could recommend a good book on the subject. ...

compact framework 3.5 application wont run on windows mobile 6.1

however can get compact framework 2.0 program to run. compact 3.5 is installed on phone??? ...

Shortcut icon inside a cab file

How do I place the shortcut icon in the cab file? Can anyone shed some light on this? I searched online and found no info about this at all, except a claim that the icon used in the smart device project is automatically pulled into a cab. Well, it isn't so. It got pulled in once and after that when i CHANGED the icon it still shows an ol...

Data-bound WinForms form - how to format dates?

I have a form with a date value in a TextBox control. The form uses data binding with a BindingSource against a DataSet and a SQL 2005 CE database. Where do I control the formatting of the date? Nowhere in the properties along the way did I see a possibility to strip out the time part, for instance. I could of course do it in the databa...

Making the balance print programmatically through the serial port.

How to? I am using SerialPort.Write function and it looks like it works most of the time, but out of the blue it just stops working. I also noticed that every time I send the command to print (even though I follow the manual, P with carriage return), I get string containing "ES" back - which according to the manual means error even thou...