Run Dialog on Windows Mobile

imageI learned this very neat trick last summer; however, a couple of months ago I couldn’t find the information again. Now that’ I’ve found it again, I wanted to share it here so that I do not lose it 🙂

By using a key combination, you can actually make the Run dialog which we are all accustomed to, to show up on Windows Mobile too.

It is really like the one on Windows, and you can add command-line parameters too. (like the one in the picture; you can open IE with a predefined address)

Hold the Action hardware button and then tap and hold the time display at the top right of the screen. When you release the stylus, a menu will popup. Select the Run option and there it is! Enter the full path of any executable on the device with any parameters you may like to give.

A method that accepts a variable number of parameters in C#

This may be old news to you, but I have learned the existence of something like that in C# just now.

C# offers a very elegant solution to this problem with something called parameter arrays.

The signature of the method should be something like this:

void PassDynamicNumberofParameters (params int[] parameters)

Read the rest of this entry »