compact-framework

SerialPort.GetPortNames() not returning correct result

I'm developing small demo application for Windows Mobile 6.1 to get the list of all serial ports and the Bluetooth devices configured on them. I'm facing some weird problem. 1) I can see total 10 COM ports when I go to Settings->Connections->Bluetooth->COM POrts. But when I use SerialPort.GetPortNames() to get all the ports, it shows 9 ...

Instantiate form without losing focus on existing form

I have an application in .NET 2.0 on the compact framework. When I instantiate my custom form the current form that I have visible seems to lose focus. My new form isn't visible (I haven't called ShowDialog()) on it, but my current form loses focus simply by calling the constructor on my new form. Any ideas on how to work around this?...

implementing a progessive search in visual basic.net

hi,i am having problem on how to implement such a thing , i am currently programming a compact framework vb.net this is what i have done and am stuck,what ive learn is very basic and simple i am using a sqlce query to use it to search for any string matching entries in the database and then it will display it something like google search...

BuildManager.GetType on the Compact Framework ( resolving a class name at runtime on all appdomain )

Hi! Is there any way to search for a Type with only its type name in all application domain on the Compact Framework 2.0? Type.GetType's behavior needs one to specify the assembly name on where to look. BuildManager.GetType does exactly that, but it isn't available for the CF. While this would be fine if I could call AppDomain.CurrentDo...

How to estimate size of Windows CE run-time image

I am developing an application, and need to estimate how much resources (RAM and ROM) it will need to run on a device. I have been looking online, but couldn't find any good tip on how to do this. The system in question is an industrial system. The application itself will need to have a .NET Compact framework, and following components b...

visual studio windows mobile debugging not working

Hello I can't hit any breakpoints while debugging a .NET CF mobile application from Visual Studio 2005 on Windows 6 professional emulator. Debugging starts, application is loaded on the device but all breakpoints are disabled. Any hints? Regards ...

Make my form on top no matter what

I need a method that will make my form move to the top when other forms do not want them to. I am not talking about myForm.BringToFront or myForm.TopMost. I am hoping that there is a P/Invoke that I can do to get into the OS and say, "This Form On Top, NO MATTER WHAT". The reason I am needing this is that I have an app that is occasio...

What in my app could cause "repllog.exe" to not execute?

I have a mobile app, that when installed on my mobile devices, is causing an alarming percentage (65%ish) of them to show this message : Cannot execute repllog.exe I have done some googling and I am still not even 100% sure what this message means. If any one knows why my app could be causing this, I would love to hear why. (A bit of...

Binary serialization for compact framework 3.5

I just realized that CF3.5 doesn't support the binary formatter. I'm using it to send objects over the network and now need to use something else to serialize my data... I heard about Google protocol buffers but found a version that has a bug under CF... What serialization framework is good for CF? Update: I forgot to mention, I need ...

How can i get Contact categories in Windows Mobile?

How can i get Contact categories in Windows Mobile? for example Bussiness, Friends, ... ...

Call ShowDialog() without actually displaying the form

I need to call ShowDialog() on my Form without it actually displaying the dialog (keep Visible set to false). Unfortunately, there is no VisibleChanged event like there is on the full framework. I also can't override the the Visible property. The closest I can come up with is to override OnLoad and call Hide in a new thread (since the...

Set the System Sleep/standby timeout programmatically

I need to set the sleep/standby timeout programmatically for my device. (ie when it sits idle for a while it turns off.) It defaults to 120 and I have a tool that let me change it, but I want to change it via my program (dynamically). Any ideas on how to do that? ...

Compact Framework: Context menu for ComboBox with style DropDown does not show on the edit portion of the control

I am working in .NET Compact Framework, C#, .Net 2.0, Visual Studio 2005. I have a form with several ComboBoxes, which have DropDownStyle = DropDown, so I can edit information in the controls. This form must have a ContextMenu (Cut, Copy, Paste etc). I did a menu, but there is a problem: When a ContextMenu is assigned to a ComboBox, th...

Conversion error in vb.net?

I am puzzled by why it does not retrieve the data and keep saying i have a error "InvalidCastException", i am currently doing these in compact framework and is totally new to it, i searched around looking for a way to get data into a listview base on what little i know about java . these are my creation of table and inserting during form...

Windows Mobile autoscroll doesn't work

I have a long text inside a Label in a panel (Windows Mobile 6.5). I set the panel's autoscroll property to true and see the scroll bar but it doesn't work, I can't scroll it. How can I solve this problem? ...

SqlCeResultSet doesn't reflect changes if starting with empty database

I have an application with multiple SqlCeResultSets, and a combobox and a datagrid on one form. I have setup the ResultSets to return subsets of the same SQL CE table, using statements like: "SELECT * FROM DLH WHERE STATUS = 'A'" "SELECT * FROM DLH WHERE STATUS = 'D'" "SELECT * FROM DLH" Which return ResultSets named DLH_A, DLH_D and ...

Check & Connect to 3G Under Compact Framework

Hello, I'm developing a compact-framework application for a Windows Mobile device to work with SQLServer Server trough 3G. The problem is that the device disconnects automatically from 3G after some idle time, and i have reconnect manually, this is not bad at all, the customer doesn't need permanent 3G connection, and it extends the bat...

Scripting library for the Compact Framework

Hi, Does anyone know if there is a scripting library for the .Net Compact Framework 2.0 (WinCE 5) available? Something like Iron Python, or LUA? ...

Xceed Zip for .NET Compact Framework v2.1 on CF2

I have been using Xceed Zip for .NET Compact Framework v2.1 for years with VS 2003. On Windows Mobile 6.1 devices xceed.zip gives a System.TypeLoadException. Trying the same component with VS2008 again results in the below exception. It seems as if it is trying to work with CF1 on a CF2 device. System.TypeLoadException: File or assembl...

how to secure access to a update server for .NET Compact Framework 2.0 application

I'm about to create the update system for .NET CF application. It is going to be a manual update system, customer will be able to "check for available updates" and install them. There will be one global update server for about 500-5000 devices. The application will be distributed as a zip compressed folder. The client application will ...