compact-framework

How to get RAS connection status on Windows CE 4.2 with Compact Framework 1

Hi, can anyone tell me how to check if a Windows CE 4.2 device is currently connected to the Internet, i.e. how to get the RAS connection status (we are using RAS autodial)? I can of course do something like a DNS query, but I certainly would like to do this without actually generating data traffic ... or is this the only way? I am stil...

Show Windows Mobile User Control

I have a simple Windows Form application that is using the .net 3.5 compact framework. I have a UserControl that I have created to show a Message to the user(I don't want to use the MessageBox as the close icon is too small) How do I get my UserControl to show on top of all of the other Grids and controls? The UserControl is declared...

Unable to use Environment.GetResourceString static method

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { var x = Environment.GetResourceString("test"); //compile-time error } } } The error is: 'System.Environment' ...

Where do you store files(such as images) on Windows Mobile 6 phones?

Hi I want to have a couple images in my phone application. However I don't know where to store them. Like I add them to my VS project but of course the image path is the path on my harddrive. So is like special folder in windows mobile where I store it. Like if I transfer my application to the phone I am going to have to stick this ima...

Usage of Desktop C# DLL in windows mobile

Hi, i have small query, is there any modification is required in usage of Desktop c# application DLL in windows mobile?. i am getting problem like File or assembly name 'Interop.CDO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null', or one of its dependencies, was not found.. i have source code of desktop DLL, i don't no what asse...

.NET Framework: Argument type 'uint' is not CLS-compliant on P/Invoke

Hello! It is safe to ignore this warning? Argument type 'uint' is not CLS-compliant I'm developing a Compact Framework applicatin and I have a lot of P/Invoke and I have to use uint, ushort, etc. as parameter's types. I've used [CLSCompliantAttribute(false)] to avoid the warning messages but I don't know it is safe. Some help would ...

c# pinvoke SndGetSoundFileList?

I'd like to call SndGetSoundFileList from c#, but I got no idea how the p/invoke for this function needs to be, due to the pointer parameters. HRESULT SndGetSoundFileList ( SND_EVENT seSoundEvent, DWORD grfLocations, SNDFILEINFO** ppSoundFiles, int* pcSoundFiles ); I'd like to get the list as a string-array, of course. C...

Compact Edtion(Windows Mobile 6) Datagrid...Can you add a column for checkboxes?

Hi I want to use the dataGrid in the compact framework edition but I need it to have a column that only had check boxes it in it. How can I add this column? ...

WebBrowser Controle

Hi,, Does any one have any custom web-browser control for windows mobile?. i tried using default WebBrowser control for windows mobile in c#, it gives me lot of problem like, it does't have gestures,it doesn't open some of sites like "icicibank.com" and many more..., i just done a quick googling on this i found this article given by Mic...

How to draw a rectangle in Compact Edtion?

Hi I am trying to draw a rectangle on a windows mobile phone. Draw the rectangle Fill the rectangle with a color Draw it on to the phone. Give it a event handler that when a user clicks something happens. I am unsure how do steps 2, 3 and 4. I see that there is a drawing class called rectangle but I don't know how to get it on the f...

Possible to render html in a compact edition mobile 6 phone form?

Hi I am wondering does anyone know if it is possible to render html in a mobile 6 form? The only way I can think that may work is the internal web browser control. I am wondering is there a better way? I am thinking if I go the path of web browser control I will have to generate an html file then insert the code I want into this file. ...

How to close a form and open a new form up?

Hi I am wondering how do I close a form after I open up a new form. For instance I have a login form and when they login I open a new form up but I want to close the login form down. So how would I do this? I am making these forms on windows mobile 6 compact edition. Not sure if it would be different then in windows forms. ...

So confused on what version I made my application for and what version my phone runs

Hi HP iPAQ 110 Classic Handheld. I made an application that uses windows mobile 6.0 professional SDK with .net 3.5 framework. the phone settings sates windows mobile 6 classic CE OS 5.2.1616(Build 181200.0.4.0). So why is it when I try to run my application it I get MissingMethodException This application requires a newer ...

Bind Data after TCP receive.

I have this strange problem all day now. I dunno if you handled something similar. I used two different serializers and now i know its not this problem. Im sending some data over TCP Sockets. Serialize -> Send -> Deserialize, everything works ok, i can get my objects search through them, use they're properties! But, if e.g receive a Bus...

C#, Overriding OnPaint: alpha transparency with double buffer.

Hello. I'm developing a Windows Mobile 5.0 and above application with .Net Compact Framework 2.0 SP2 with C#. I'm overriding OnPaint method on a custom messagebox that draw a bitmap that fills the entire form with alpha transparency, and a gradient box with a button and a message over the semi-transparent background. I'm testing it bu...

Detect whether the assembly was built for .NET Compact Framework

Having a .NET assembly, how can I detect whether it was built for .NET CF or a full framework? ...

SmsReadMessage and buffer conversion to string

Hi, I am trying to read an SMS message that I receive. The call to SmsReadMessage completes successfully and I get the message in a byte array. Here is the declaration for SmsReadMessage: [DllImport("sms.dll", SetLastError=true)] public static extern int SmsReadMessage( IntPtr smshHandle, byte[] psmsaSMSCAddress,...

Control.Invoke fails at second call.

Hello! I'm developing a Windows Mobile 5.0 and above application with .Net Compact Framework 2.0 SP2 and C#. I have this code inside a method: if (listBox1.InvokeRequired) { Invoke(new MethodInvoker( delegate() { listaBox1 = listaBox2; listBox1.Visible = true; })); } else { listBox1 = listBox2; listBox1.Visible = t...

How can I know when a thread ends on .Net Compact Framework?

Hello. I'm developing a Windows Mobile 5.0 and above application using .Net Compact Framework 2.0 SP2 and C#. How can I know when a thread ends? This is my code: System.Threading.Thread thread1 = new System.Threading.Thread(() => RetreiveSoMuchData(ID)); thread1.Start(); Thank you. ...

Playing embedded wav files using SoundPlayer

I have a Compact Framework 3.5 application that is responsible for scanning barcodes. There are 3 different sounds it should play depending on the situation, so I created a wrapper class around the SoundPlayer object and call the Play method on that. public static class SoundEffectsPlayer { private static readonly SoundEffect _alert...