Windows Store App – Focus on TextBox when Navigated To The Page

Some time you want to make your app more user friendly by automatically focus on specify control for example search text box so that when user open the page, they can start typing the keyword they want to search rather than click on the search text box first then only start typing.

I try to use TextBox.Focus() in OnNavigatedTo, but it nothing happen. So I try to use the same method use in Silverlight by creating a DispatcherTimer and delay the focus by 0.5 second. Well, this method work out in Windows Store App. If you are interested, below are the code.

// timer to create initial focus on control
DispatcherTimer initialFocusDispatcherTimer = new DispatcherTimer();
initialFocusDispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
initialFocusDispatcherTimer.Tick += (tickSender, tickEvent) =>
    {
        initialFocusDispatcherTimer.Stop();

    // focus on search bar
    SearchTextBox.Focus(Windows.UI.Xaml.FocusState.Keyboard);
    };
initialFocusDispatcherTimer.Start();

 

 

by Ooi Keng Siang via Ooiks’s Blog

Get Ready for WOWZAPP 2012 in Malaysia

 

A few more days to go before WOWZAPP Malaysia 2012 kick start! So what is this WOWZAPP first? Just in case if you don’t know what is WOWZAPP, it is a worldwide hackathon for developers to get building cool apps for Windows 8. There are thousands of developers around the world building apps for the next generation of Windows during this event. WOWZAPP in Malaysia will be on 10-11 Nov 2012 at MMU, Cyberjaya. Music, free food, expert help, free resources will be available there to assist your learning and coding without sleep. Maybe a bit of sleep.

For more information: http://aka.ms/mywowzapp2012

Continue reading Get Ready for WOWZAPP 2012 in Malaysia

Facebook Missing Some Updates From Friends

“Why I never see the update post from my friend who everyone is discussing it now?” Does this sound too familiar to you? You know that you didn’t block your friend’s update but you just can’t found the update post on your news feed unless you go to that person’s profile / wall to see it.
There are some changes in Facebook which I’m not sure when and how, but here is what you can do.

Continue reading Facebook Missing Some Updates From Friends

Windows Store App – Check If File Exist or Not

Before Windows 8, to check a file exist or not on Windows Phone 7.5 or .NET can be as simple as calling the file.IsFileExist() and it will return a simple boolean indicated whatever the file exist or not. But Windows 8 team decided to have a totally different way and I had no idea why Microsoft or Windows 8 team decided to re-write it.

Anyway, here is how it work out in Windows 8 app (C# code):

public async Task<bool> IsFileExist(string path)
{
    try
    {
        await Windows.Storage.StorageFile.GetFileFromPathAsync(path);

        // file found
        return (true);
    }
    catch
    {
        // file not found
        return (false);
    }
}

 

by Ooi Keng Siang via Ooiks’s Blog

Install / Uninstall User Script in Google Chrome (Updated)

 

[Update] In Google Chrome version 27, you need to check the Developer mode in the Extensions setting in order to install any user script directly. It is recommended to use Tampermonkey extension in Google Chrome to install any user script in the future because Google Chrome has place some limitations on how user script can access the resources in the iframe which cause a lot of problems in many user scripts that include MouseHunt Autobot. I have write a blog post on how you can install user script in Google Chrome through Tampermonkey Extension.

 

This post is intended to help Google Chrome user on how to install or uninstall user script in their browser. Google Chrome version 21 had change the way how we can install user script. Now it only allow user script to be install in the Extensions page and web store but not from any tab opened.

How to install user scrips in Google Chrome

Step 1: Download the user script you want from website such as http://userscripts.org and save it to some place which can access easily like Desktop. (You can download by right-click on the Install button and choose Save link as…

Continue reading Install / Uninstall User Script in Google Chrome (Updated)

Microsoft Word 2013 – Hide Markup Area When Printing

 

[Update]: I have found a solution to remove the markup area instead of hiding it.

 

When you try to print your document in Microsoft Word 2013 (I’m now using Microsoft Word 2013 beta version), be warn that there maybe a huge blank space on the right hand side which is colored in light silver / gray color. This may happen when you have a long document. When I first encountered this problem, I was shock as there was no such blank space on the right in my document and the page layout was set correctly in Word. Later I found out that this blank area is call Markup Area where users can write their comments, highlights or changes at there. Although I didn’t write any comment there, yet the Markup Area show up every time I try to print the document.

 

Continue reading Microsoft Word 2013 – Hide Markup Area When Printing

Imagine Cup 2012 Worldwide Final – Day 1

The ceremony began with a video introduction capturing the 10th year of Imagine Cup.

The opening ceremony inspired the students in competition give best them because the youth of this world holds the future of planet in their hands. It is the right time to seize opportunities which will make it possible to innovate in order to solve the problems of the world.

Although the competition is directed around technologies of the software and hardware development, Microsoft invites each year personalities of the civil society and business world, which contributes directly or indirectly to change the world.

For the full story, check out the blog post on Microsoft Student Partner Social Media Team: Imagine Cup 2012 – Opening Ceremony

Imagine Cup 2012 Worldwide Final – Are You Ready

Microsoft Imagine Cup 2012 worldwide final is just around the corner! This year the worldwide final will be held at Sydney, Australia from 6th to 10th July 2012 and we already have some exiting activities like People Choice Award which is already running now. There are more activities waiting in the final like opening ceremony, culture day,  prize giving ceremony and different categories competition. This year Imagine Cup have Software Design, Game Design, IT Challenge, Kinect Fun Labs Challenge, Metro Style App Challenge, Windows Azure Challenge & Windows Phone Challenge.

Just like last year, this year there are 25 MSPs from around the world in a team call Microsoft Student Partners Social Media Team (MSPSMT) which will report Imagine Cup 2012 worldwide final live through social media channels. I’m also part of the team and we will depart to Sydney tomorrow and get prepare for the event. If you wish to stay up to date what happen in Imagine Cup 2012 worldwide final at Sydney, Australia then stay tune in our official social media channels and we will bring you the latest update of the event from time to time.

 

Imagine Cup Properties:
Website: http://www.imaginecup.com/
Twitter: https://twitter.com/imaginecup
Facebook: http://www.facebook.com/microsoftimaginecup
Flickr: http://www.flickr.com/photos/imaginecup/

Microsoft Student Partner Social Media Team Properties:
Twitter: http://twitter.com/MSPSMT
Facebook: http://www.facebook.com/imaginecupsocialmediateam
Youtube: http://www.youtube.com/WWMSP
Flickr: http://www.flickr.com/photos/mspsmt/

 

by Ooi Keng Siang – MSPSMT via Ooiks’s Blog

Imagine Cup 2012 – People Choice Award

People Choice Award is back in Microsoft Imagine Cup 2012. There are more than 60 teams had submitted their video this year in order to compete and win $10,000 USD prize sponsor by Bing. Check out those great projects the students created. Come support your favorite team by casting your vote to them before 9th July 2012. The winning team will be announced on-stage at the Worldwide Finals in Sydney, Australia on 10th July 2012.

People Choice Award: http://bit.ly/ICPCAsmt

 

Imagine Cup Properties:
Website: http://www.imaginecup.com/
Twitter: https://twitter.com/imaginecup
Facebook: http://www.facebook.com/microsoftimaginecup
Flickr: http://www.flickr.com/photos/imaginecup/

Microsoft Student Partner Social Media Team Properties:
Twitter: http://twitter.com/MSPSMT
Facebook: http://www.facebook.com/imaginecupsocialmediateam
Youtube: http://www.youtube.com/WWMSP
Flickr: http://www.flickr.com/photos/mspsmt/

 

by Ooi Keng Siang – MSPSMT via Ooiks’s Blog

Windows 8 – Screen Brightness Problem

A lot of peoples including myself can’t wait to try out the latest version of Windows which is the Windows 8 Release Preview. Everything work like a charm expect the screen brightness issue which cause a lot of trouble to me since the Consumer Preview version. Every time after my computer resume from sleep, hibernate or boot up after a shutdown, the screen’s brightness will automatically adjust to the lowest. No matter how hard I punch on the brightness increase button, it will automatically go down to zero again.

After some research and try-error, I finally able to fix this troublesome problem. If you are facing the same problem, you might want to go through the list one by one. Some might work for you, some might not, depending on your computers.

Continue reading Windows 8 – Screen Brightness Problem