2012年10月11日 星期四

Joining the domain after installing windows 8

1. add your pc into the company's domain.
a. Control panel -> System and Security -> system ->
b. In the row of "Computer name, domain, and workgroup settings -> change settings
c. in System properties dialog, click on Change.. button.
d. enter your pc name and domain name
e. enter your account name and password to that domain.Then you are done! :)

2. Log- in with the user in your company's domain.
a. in log in screen, click on the arrow, (indicating you are loggin in using the user of the domain.)
b. enter the username/ password of the domain.


2012年9月20日 星期四

windows 8 set focus

It seems that there is no setFocus() method anymore. Instead, windows 8 includes the Windows.UI.Xaml.FocusState for different focus state, like: pointer, keyboard, etc.

The usage would be like:
ViewObjectName.Focus(Windows.UI.Xaml.FocusState.Pointer);

2012年9月10日 星期一

Run a program as administrator

http://www.intowindows.com/run-program-as-administrator-in-windows-8/


1. press windows to go to start screen
2. open search screen to search the program that you want to run. (i.e. cmd.exe)
3. the search result will be shown on the left hand side.
4. right click on it (tile of cmd.exe)
5. click on advanced
6. check run as adminstrator

2012年9月3日 星期一

Launch Browser with an URI from a win8 app

http://zubairahmed.net/?p=266

Here is the code snippet:
 Uri justUri = new Uri("http://www.google.com");  
 await Windows.System.Launcher.LaunchUriAsync(justUri);