windows-mobile

Find out which apps are using Battery Life

My devices are having power issues. The battery is not lasting as long as we would like. There are several components that I could guess are causing the battery issues. Right now the best way I can see to find the culprit is to go through one by one and disable each of them, then conduct a test (that is about 6 hours long). To ge...

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? ...

WIndows Mobile full screen problem

I have a windows mobile professional 6.1 application and I want it to be full screen in all pages so I put the code below into my every pages constructor; this.WindowState = FormWindowState.Maximized; this works OK but "sometimes" for example when I use MessageBox.Show("alert"); or when I try to connect internet within applicatio...

CF.NET SMTP - send email with Gmail

I'm trying to send email from my application. I can send email by smtp.mail.yahoo.com, however while I'm trying to send the email with gmail (smtp.gmail.com) it fails. I'm using SocketPro. I've try to use also openSSL but I don't know how to use it! Anyone you have any code sample, that you can provide me, to send email from Gmail? ...

Tell the OS to reload the power timeout values from the registry

I have some code that I am using to update the amount of time the device will wait before going to sleep. I update the registry and then try to tell the OS to reload the value, but it is not working. (The reload part does not work. The registry updates fine.) I am going to post my code in the hopes that someone knows what I am doing ...

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? ...

WindowsMobile CAB file I can't change the appname!!

I have a Windows mobile professional 6.1 application and I created a CAB file for that..when I am installing the cab in the phone in some place of installation I see a wrong app name which I don't even remember when and where I have setted it! SO I checked the _system.xml file in the CAB archive and saw the problemetic line; <parm n...

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...

Mobile inventory application -- need advice

I have been tasked with designing an application for tracking inventory on a mobile device. The application will be barcode scanner enabled and either make real time service calls (preferred) or periodic file transfers to update our backend system written in ASP.NET. We are a .NET shop so we will likely leverage the Microsoft platform....

How to pass arguments to a console application if it is already running ?

I use a Console Application in Windows Mobile to handle incoming message interception. In the same console application i accept parameters (string args[]) which based on the parameters, register the message interceptor. InterceptorType is a enum static void Main(string[] args) { if (args[0] == "Loc...

mediaelement in windows phone 7?

Hi, my requirement is in mainpage.xaml i am having some images i need code for when click on particular image that sound only play.when click on another image that sound i would like to play.urgent thanking u in advance ...

ProgressBar In Windows phone 7?

Hi , Anyone can Give code samples for how to use progressbar in windows phone 7. ...

Website for Mobile Devices - Using Visual Studio

Hello, I am new to Mobile specific website development. I want to know does Visual Studio provides way to create a web site which can be targeted to mobile devices? Also can this website be run on phones running on OS other than Windows OS like iPhone, Android or slimier other OS? My aim is to develop a website which can be targeted to...

Should i load back all the MessageInterceptor rules on application startup?

I use the MessageInterceptor with several rules to handle incoming messages. My problem is that according to this page (see the code below), he mentions that a key part of the logic is to load the MessageInterceptor object in the Form Load and check whether IsApplicationLauncherEnabled and bind it again to the MessageReceived event. ...

Secure Wiping of files in Compact Framework

Given the path of a string i want to wipe out the contents of a file. The natural way I thought (which maybe incorrect) was to open a FileStream to the file and write gibberish (random data perhaps taken from a RNGCryptoServiceProvider) to it. And then perhaps do this several times and then delete the file. My problem is that while thi...

How to design grid Rowdefinitions and Columndefinitions dynamically for Windows7 phone

Hi Friends, i need to design grid Rowdefinitions and Columndefinitions dynamically for Windows7 phone please help me Thanking you ...

adding media element in windows phone 7?

I want to play an audio of an image whenever click on it .If we click on another image that sound will play in that way we want write the logic. plz detail steps for this one. ...

Grid Binding in Windows phone 7?

i am taking one grid having 3 rows and 3 columns .i want to bind the images to that grid actually images are added to grid but it is not added in correct way.i.e they are not place with in cells of grid . How to bind 12 images correctly to cells of grid .i want all images are having same size and width placing properly in that grid...

How to preload class libraries in Dot Net Compact Framework?

Lets say i load Form1 and then it shows buttons which let me access Form 2,3 and 4. Now, when i click the button to load Form2, I can see that it takes a bit of time to load a few class libraries (.dll) which makes the UI look unresponsive. I don't see the form until the class libraries are loaded which makes the Form1 to still be sho...

media element doesn't play audio in windows phone 7?

hi media element doesn't play audio even correctly giving the properties. ...