compact-framework

P/Invoking SetWindowLong and CallWindowProc in managed code (compact framework)

I am trying to override the window procedure for the winmobile taskbar (in order to catch and block pressed buttons) by using SetWindowLong. I have created a class with one method for overriding and one for restoring the window procedure. The MessageReceived method is the one I use to replace the taskbar window procedure with. My class l...

How to quess how many bytes were sent/received by mobile device(Sync Framework, PDA)

I have a WM device (with CF3.5 on it). It's not always connected to network. It can sync through web service with the server database. I want to know if there is possibility to get traffic value between mobile device and server (and not just uploaded/downloaded changes from sync statistics)? ...

Adding an image to my Windows Mobile 6 project or resolving a first chance exception.

Hello all Windows Mobile Experts! I have really drowned in the world of developing for the Windows Mobile, all the different versions and frameworks are extremely confusing. But this is my scenario: I need to develop an app which is to be distributed outside of Marketplace, my company will use it as a showcase during a single event. It ...

developing applications for windows mobile,c#

hey i am new to this i work on visual studio 2008,now i want to create applications for windows mobile in c#. what r d requirements and how to build them??? Do i need any kind of simulators ...

Determine screen color depth/monochrome in .NET compact framework 2.0?

I'm using the .NET CF 2.0 on multiple devices which have different display capabilities (specifically color/monochrome) that I'd like to determine at run-time but can't find any methods that provide access to this information. ...

How to end phone call in C# CF ?

Hi, Microsoft website gives an example how to place a call in C# compact framework, but I don't find example how to end a phone call. Does anybody know? thanks, ...

Insert takes too long, code optimization needed

I have some code I use to transfer a table1 values to another table2, they are sitting in different database. It's slow when I have 100.000 records. It takes forever to finish, 10+ minutes. (Windows Mobile smartphone) What can I do? cmd.CommandText = "insert into " + TableName + " select * from sync2." + TableName+""; cmd.Execute...

optimizing controls Top-down by parent

Hello, According to this post http://msdn.microsoft.com/en-us/library/aa446535.aspx you can do some optimization on your code. I am wondering if anyone getting some success, as I've tried out and can't get performance. Regards, Pentium10 ...

What is the fastest way to insert 100 000 records from one database to another?

I have a mobile application. My client has a large data set ~100.000 records. It's updated frequently. When we sync we need to copy from one database to another. I have attached the second database to the main, and run an insert into table select * from sync.table. This is extremely slow, it takes about 10 minutes I think. I noticed th...

Why is WMDC/ActiveSync so flaky?

I'm developing a Windows Mobile app using the .NET Compact Framework 3.5 and VS2008, and for debugging using the Device Emulator V3, on Win7, and seem to have constant problems with Windows Mobile Device Centre (6.1) connecting. Using the Emulator Manager (9.0.21022.8) I cradle the device using DMA in WMDC. The problem is it's so flaky ...

Installing .NET CF 3.5 side by side with standard framework

Hello, We have a machine that needs .NET Compact Framework installed and now we need to install standard .NET Framework 3.5. Any problems or known issues with installing both frameworks together? Thanks. ...

Assembly locations for Visuals Studio Toolbox

Hi, I'm trying to setup my development envrionment on a Windows 7 64-bit edition system. I've installed VS2005 and VS2008 alright. At work, we have several self-developed control libraries for the .NET Compact Framework. Under Windows XP 32-bit I was able to store them in a folder C:\owncontrols and add the folder to [HKLM\...\Microso...

Debuging with visual studio : the program crahes when executing a heavy loop

Hello, I am currently trying to extract a file compressed with GZip. I want to do it programmaticaly on a mobile device using Windows Mobile 6. I use the Compact Framework 3.5, and C#. The compressed file size is about 4 MB. And the size of the original file (which is a text file) is about 42 MB. My algorithm crashes during the extract...

Port Windows CE app to Windows Mobile

I have a rather complex application that was originally built for Windows CE (using Visual Studio 2008, C# 2.0). I'm now trying to get it to run on a Windows Mobile device. There are a few UI quirks, however. I notice that the background color is all white and there doesn't appear to be any borders around a lot of the controls like th...

Draw Image with GDI functions.

I have a downloaded images app in mobile. Every times an image is download successful, it auto draw on to a temp bitmap and then onPaint method draw the whole temp bitmap. It caused the flikering happened to much. My instructor advised me to use GDI functions to draw the temp bitmap onto the screen every times one image loaded. But his ...

Exception: 0xc0000005 When Media Player OCX control is loaded on second time

In a .NET Compact Framework application we are using ocx media player component written by coppercoins. The media player launches on a new screen when ever user clicks a button. The media player works well on the first time. When we close the media player form and launch it once again on click of the button, it breaks with the following...

Media Player Control for .NET Compact Framework

Is there any free media player control library that allows us to play videos in a .NET Compact Framework application? We tried the one available at http://www.coppercoins.de/post/2008/11/03/WMP-Part-IIIa-Creating-new-Interop-Assembly-for-Mediaplayer.aspx, but having issues with memory problems and access violation errors. ...

design pattern in Compact framework

Hi All, I have been working on Web application so far and has just got an opportunity to work ong Microsoft Compact Framework. i am pretty new about the framework. In ASP.net application I have been following some of the predefined Design patters and sometimes frameworks like CSLA.net or Factory/Abstract Factory. Now while looking at t...

Rich text on pocket.outlook?

Hi, On desktop outlook, the "body" property of tasks and calendar entries may contain rich text (formatting, links, etc). However, when using pocket.outlook on WM, I am only able to access a "plain text" version of the text that is stored. Is there a way to obtain it in "rich text" format? Many thanks! ...

Where is IQueryable in the .NET Compact Framework?

I have started to develop a repository using LINQ to SQL against SQL CE in a Windows project. This works fine. However, when I went to port the code over to .NET CF for a Windows Mobile application, the IQueryable does not appear to exist. What is the best way to make this work across Mobile and Desktop? ...