compact-framework

CF - How to get mouse position when ContextMenu pops up ??

I have a problem i cannot solve. In my view (that shows a map) i created a contextMenu. When context menu is invoked i need to get the position where the user has clicked on the map. Here is my problem: In the view i already have onMouseDown event that gets me the coordinates where the user clicked. private void MapView_MouseDown(obj...

On Windows Mobile while on a phone call how do you play an mp3 file so that the other party can hear it?

I'd like to be able to pre-record a message in a wav or mp3 file, then make a phone call and play this message to the other party when they receive the call. Is that possible? ...

Convert Keys.Enter to char in Compact Framework

I need to convert Keys.Enter to a char. This does not work in compact framework: http://stackoverflow.com/questions/2518749/convert-sequence-of-system-windows-forms-keys-to-a-char (KeyInterop.VirtualKeyFromKey) Any one have any other ideas? Further clarification: I like using enumerations more than magic numbers/chars. Rather than...

SqlMetal alternative for .NET Compact Framework 2.0

Is there any way to generate database models from existing database (sdf file) for .NET Compact Framework 2.0? Since it doesn't support LINQ I cannot use SqlMetal. I'm looking for free for commercial use tool. ...

Not enough storage is available to complete this operation - Program or Storage memory?

I've been given a Windows Mobile app written in .Net CF 3.5 to fix, and one of the problems is to do with storage. The message 'Not enough storage is available to complete this operation' has appeared a few times - it's logged in the SQL CE database, and always happens during data access (but not the same bit of data access). The thing...

Multi selection on System.Windows.Forms.DataGrid (CF)

Is there a way to do multi-selction on with the standard datagrid? (I am using the compact framework.) This is what I ended up doing: readonly List<int> _selectedRows = new List<int>(); private void dataGrid1_MouseUp(object sender, MouseEventArgs e) { int c = dataGrid1.CurrentRowIndex; if (_selectedRows.Contains(c)) { ...

Know who got the focus in a Lost Focus event

Is it possible to know who got the focus in a lost focus event. Compact Framework does not have a ActiveControl, so I don't know how to tell who got the focus. I used this way of finding the focused control. public System.Windows.Forms.Control FindFocusedControl() { return FindFocusedControl(this); } public static System.Window...

from where i can get button with picture - for Windows mobile ?

hi from where i can get button with picture - for Windows mobile ? i work on Visual-studio 2008 i need a free one thanks in advance ...

Not able to set focus on the first control in window forms in .Net Compact Framework 3.5

I have developed an application using .Net Compact framework 3.5 that runs on a touch enabled device with WinCE 5.0. I want the focus to be on the first textbox when the page is launched. I tried using textBoxName.Focus(); textBoxName.Capture = true; textBoxName.TabIndex = 0; But the focus is not being set to the control. ...

How to differ between Windows Mobile 6.5.3 and previous versions during runtime?

Is there an established or unofficial way of finding out if my application is running on a Windows Mobile 6.5.3 device or if it's a previous version? Managed or native doesn't matter and I don't mind interop-ing. ...

Does the FileInfo.GetFiles method in .NET CF retrieve all files recursively?

I see .NET has the option: SearchOption.TopDirectoryOnly which helps me to limit the file list retrieval for just the selected directory, not subdirectories. I would like to know whether .NET CF has any options to do so? ...

Is there any way to use X509Store in .NET CF?

How to use X509Store in .NET CF? I have not found it on the Object Browser window. ...

How to implement a SOAP client in C# (specifically for Windows Mobile)?

I'm really confused about how to create a SOAP client in C# using .NET. I have found this page which looks really promising, but for the life of me I can't find Microsoft.Web.Services2. Also most information I find about SOAP with C#/.NET are about creating web services in ASP.NET and that's not what I want to do. Basically what I want ...

What is the fastest/better way to localize a .Net Compact Framework application?

I am developing an application for a Windows CE OS. I am using .Net Compact Framework 3.5. I want to localize my control texts on my form , and I am looking for the fastest way and compatible to compact framework using C#. Please guide me with your valuable ideas how can I do it ? ...

.Net Compact Framework 2.0 touch and nice controls

Hello! I would like to know if somebody knows free custom nice controls for .NET Compact Framework 2.0. There are nice controls as Manila Interface SDK (http://forum.xda-developers.com/showthread.php?t=566188), Sense Interface SDK (http://forum.xda-developers.com/showthread.php?t=648906) and so on for free, but they work only on .NET ...

How to handle error on other thread?

Hi, I'm trying to handle errors that have occurred on other threads the .NET CF program is like below: static void Main() { Thread t = new Thread(Start); t.Start(); ... } void Start() { ... Exception here } In my situation, putting try catch in the Start method is impossible. How can I handle it in the global code?...

CF - TreeView look on 6.0 and 6.5 device

I have a treeView with checkboxes and with image list. Im trying to fix its look on both devices 6.0 and 6.5 but i cant get it to work. Either its ok on one device and looks crappy on the other. The checkboxes are so small on 6.5 that i cant even tap them. If i change the font i get huge checkboxes and text on 6.0 device. Also i dont k...

Credit card validation and parsing utilities for .Net Compact framework 3.5

I have payment gateway integration in my application developed using .Net Compact framework 3.5. Is there any "Credit card validation and parsing utilities" that i can use in my application or is there any class that i can use to identify the type of the card? ...

OpenNETCF DirectShowPlayerControl display is going black randomly when playing videos if the player is disposed and recreated

I have a application that runs on touch enabled device with WinCE 3.5 OS. I have a show player control to display adds when the system is left idle for some configured amount of time.. So the DirectShowPlayerControl will be iniated every time the show player is launched and will be destroyed when it is closed... The player for the firs...

Can I write a .NETCF Partial Class to extend System.Windows.Forms.UserControl?

Okay... I'm writing a .NET CF (VBNET 2008 3.5 SP1) application, which has one master form, and it dynamically loads specific UserControls based on menu click, in a sort of framework idea. There are certain methods and properties these controls all need to work within the app. Right now I am doing this as an Interface, but this is aggrav...