compact-framework

how to update date & time & region on Windows CE ?

How can I update date & time & region on Windows CE? I need any C# code for this. for example: i want to update to: 21/12/2010 05:34 (region format dd/MM/yyyy) Thanks in advance. ...

how to do this: i press 'G' on textbox and i'll see 'A' ?

hi how to do this: when i'll press 'G' on textbox in my form i'll see 'A' ? in C# code (windows-CE or Windows-mobile) thank's in advance ...

CF - Language directory missing after installing CAB on device.

Hello ! On some of the controls im using locatisation (language property). Besides default (that is in english) im also using additional language (slovenian). Other localisation is done with application resource file. If i debug the app on emulator there is a directory (si-sl), but if i build a CAB and install the CAB on emulator ther...

CF - Config file on device gets read-only attribute.

I have added a config file (myapp.exe.config) that is deployed to the device after installation. But the problem is that this file gets read-only attribute. I have tried adding some stuff in the setup project in "codeINSTALL_EXIT" function. On emulator it works ... it removes the read only attribute, while when installing on the phone th...

Compact framework using web services is too slow!

Hello, I have an application in a PDA with CF3.5. I also wrote a webservice (WCF) in .NET3.5. there are two operations: 1) PDA asks the WS for data. WS returns an sdf (sql server CE file) around 500KB. The communication is fine. Around 5-10 secs. 2) PDA goes around collection data, and sometime returns to a station and connects to the...

How to load and manage images more efficiently?

I have a front-end program for PND's running Windows CE (both 5.0 and 6.0) It user a high quantity of images (currently in png format) as buttons or for decoration purposes. The images are loaded from the SD Card via the new Bitmap(path); I'm currently using v3.5 of the framework. Upon loading, OS + my application have consumed 75 to 8...

CF - Information about device, platform etc...

Hi! I would like to get some information about the device, os etc. from the device running my app. I need to log this data so i can run some diagnostics later. Now i think that this data is located in Microsoft.Win32.Registry but that means i need to know all the keys to access values. Any idea? ...

Read and edit .cdb files (Pocket Access) in C#

I need to make a program that can read and edit certain .cdb files (Microsoft Pocket Accesss files, created and used by legacy accounting mobile application). I'd like to do that in C#, using VS2008. It would be great to be able to create both a desktop application (.Net) and a mobile application (.Net CF), but just one of them is perfe...

TopMost Notification Bubble in Windows Mobile 6

Hi, I'm developing an app for Windows Mobile 6 using CF3.5. I need to show a notification to the user, and I want to use the Microsoft.WindowsCE.Notification class. I'm showing the notification from a TopMost form and the Notification pops up below the form, so it's not visible. Is there any way to make the Notification "topmost"? ...

Using WCF faults with the Compact Framework

Hi I have a WCF service that is called by a Windows Mobile application running on a PDA. I've set up the server code to send WCF faults if there is a problem. This is the code that I think I am supposed to be using on the client: try { var data = myService.GetSomeData(); } catch (FaultException<Service.CustomFault> fault) { mes...

Change the font size of a .net form in Windows CE 6.0 not working?

I have been tasked with modifying an existing phone application to allow it to resize to multiple resolutions. I have it resizing fine by using the Scale function but i'm still finding that the fonts are far too small when run on a high resolution Windows CE device. I am currently attempting to set the forms font to a larger size and re...

CF - Button when pressed receives a focus (bold border)

As the question is asked ... how can i prevent that from happening? I have ZOOM IN and ZOOM OUT button that receive focus after pressed. The button in CF does not have focus property so im guessing im required to do another painful workaround... Any ideas? ...

Issue with ressources files in CF

Hi, I've done a compact framework app with sevral ressource files for globalization, and packagd everything into a CAB file. My problem is that some of this ressources files seem to be unreadable (changing culture goes to default culture). All this ressource file are identical, excepte of course for translation. And when I copy files g...

Problem with MessageBox

I'm having a problem with a MessageBox intended to be modal. Here is the situation, A user select xx from the form MessageBox appears User opens the embebed software keyboard (the built-in one, from the device) User closes the keyboard The MessageBox loses focus (how? it's supossed to be modal!) and the main form is shown in the fore...

CF - NETCFv35.wm.armv4i.cab and netcfv35.messages.en.wm.cab

Just want to know how do you guys provide this files for the users. My app requires both this files and im not sure how to provide them to users. Just pointing them to rapidshare or some other download site isnt the desired anwser. What are your suggestions? ...

Listing all referenced assemblies

How to list all referenced assemblies? (referenced assemblies from referenced assemblies...) and there targeting framwork (.NetCF2.0, .Net 2.0)? Are there any apps (or Reflector plugins) ? My problem is that when I deploy a CF application in VS2005 some Assemblies from the full .Net framework are deployed. But I don't know why... ...

Form not refreshing after ShowDialog (Compact Framework)

Hi, I'm having a weird issue with form painting in the Compact Framework. I have a login dialog that is basically a small form that is opened on top of another using ShowDialog. When a card is swiped, the login dialog is supposed to close, then some login tasks are performed and then the form behind it should be activated. The problem is...

Cannot localize (translate) a custom control in .NETCF 2.0

I am translating a compact framework 2.0 windows form in Visual Studio 2005. To do that, I change the language of the form to German (the target language) and edit/resize the controls on the form. This creates a resources.de.resx file containing the translated strings as expected. However, there is a custom control on the form, which ha...

How do I kill a Windows Mobile 6.1 forms app process when the form is closed?

In the Program.cs file of the .Net CF 3.5 WinForms program I've written, I launch the app by instantiating a new instance of Form1. Application.Run(new Form1()); When I want to close/exit the application, I override the Form1 FormClosed event so that I can ensure exiting the application. // In Form1 code-behind private void OnFormClo...

Datagrid in Compact Framework - format cell

I would like to format (cell background color for a whole row) a gridview in Compact Framework. It would not be something like alternating row style, but it would depend on some data the datasource has. So it's like ex.: one row out of total 4 rows for the dt. What is the simplest way? Do i need to override Paint() ? ...