SQLite Problem in Universal Windows Platform

Since they are no SQLite library that direct support Universal Windows Platform (Windows 10 app) currently yet, we are force to use the SQLite for Windows 8.1 instead. For those who use SQLite in Windows 8 / 8.1 app and wanted to upgrade their project to Universal Windows Platform, you may encounter th following message if you try to follow the tutorial of adding SQLite to Windows 8.1 project.

An exception of type ‘System.DllNotFoundException’ occurred but was not handled in user code

Additional information: Unable to load DLL ‘sqlite3’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Continue reading SQLite Problem in Universal Windows Platform

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) =>

    // focus on search bar



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

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)
        await Windows.Storage.StorageFile.GetFileFromPathAsync(path);

        // file found
        return (true);
        // file not found
        return (false);


by Ooi Keng Siang 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