Monthly Archive: October 2009

Oct 22

Keyboard shortcut of the day #10

ALT+ENTER View properties for the selected item. Applies to: Windows Explorer.

Oct 21

Keyboard shortcut of the day #9

CTRL+ESC Opens the Start menu. You can also use the Windows Logo key. Applies to: Windows.

Oct 21

How can I close browser window from Silverlight?

You can do that by invoking JavaScript code. Calling just window.Close() does not work in Chrome. The following code also bypasses IE prompt for confirmation. System.Windows.Browser.HtmlPage.Window.Eval("”, ‘_self’, ”);window.close();");

Oct 20

Which timer can I use in my WPF or Silverlight application?

Instead of System.Timers.Timer you should use DispatcherTimer. You can find it in the System.Windows.Threading namespace. using System.Windows.Threading; DispatcherTimer timer; timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(5); timer.Tick += new EventHandler(this.TimerTick); timer.Start();

Oct 20

Keyboard shortcut of the day #8

ALT+F4 Quit program. Applies to: All Windows applications.

Oct 16

Keyboard shortcut of the day #7

ALT+TAB Switch to another running program (hold down the ALT key and then press the TAB key to view the task-switching window). Applies to: Windows.

Oct 14

Keyboard shortcut of the day #6

SHIFT+F10 Opens a shortcut menu for the selected item. This is the same as right-clicking an object. Applies to: Windows Explorer. It should work in most Windows applications also.

Oct 14

Good restaurant

This post is just a reminder to myself. If you are in Ingolstadt, Germany you should try a good Greek restaurant in the city center. It is called Delphi Restaurant and you can find it at the Ludwigstrasse 9. They are open from 11h till 15h and from 17h until 24h.

Oct 13

Keyboard shortcut of the day #5

F10 Activates menu bar. Applies to: Windows Explorer, all Windows applications.

Oct 12

How do I retrieve command-line arguments in my WPF application?

The easiest way to retrieve command-line arguments in any (not just WPF) .NET application is to simply call System.Environment.GetCommandLineArgs(). And you can do that at any point in your application not just from the Main method. using System; class Sample { public static void Main() { Console.WriteLine(); String[] arguments = Environment.GetCommandLineArgs(); Console.WriteLine("GetCommandLineArgs: {0}", String.Join(", ", …

Continue reading »

Older posts «