Kinect for Windows v2 unboxing (consumer version)

So I got my Kinect for Windows v2 recently and i thought I’d show whats inside..


So the box is fun stuff…DSC_0115

Read more of this post

C# Tutorials

Over the past 6 months I’ve worked on some intermediate C# tutorials, they go over topics that are not usually covered by other video tutorials on the internet.


Click the read more button to see the list.

Read more of this post

My tour of windows 8 developer preview (build 8102)




AdvancedPostIt Devlopment Update (DevV0.07)

I’ve been working on a lot of things in this Dev Vision, This program is nearly to be Beta tested (by DevV0.10 maybe). I’ve added and fixed a lot of things, this has probbly been the largest DevV.

Here is the change log of this DevV:

0.07: (current)
-Implementing Options (incomplete)
-Back/Next playlist buttons
-lot of error handling
-Finishing up unfinished event handlers
-YouTube Player… a lot f work needs to be done on this.
-Tray Icon Improvements

Here are a few Screenshots:

Image Viewer


Videos (Bottom: Vlc. Top: MediaElement



Note Taker and TrayIcon

WindowsAPICodePack Taskbar videos

Codesnippets for the 4 videos on the taskbar.
Developing for Windows 7: Taskbar #1: Overlay Icon:

using Microsoft.WindowsAPICodePack.Taskbar;
        TaskbarManager taskbar = TaskbarManager.Instance;
        Icon play, pause, stop;
        public MainWindow()
            play = new Icon((Stream)Application.GetResourceStream(new Uri("pack://application:,,,/VideoPlayer;component/Play.ico")).Stream);
            stop = new Icon((Stream)Application.GetResourceStream(new Uri("pack://application:,,,/VideoPlayer;component/Stop.ico")).Stream);
            pause = new Icon((Stream)Application.GetResourceStream(new Uri("pack://application:,,,/VideoPlayer;component/Pause.ico")).Stream);
        private void button1_Click(object sender, RoutedEventArgs e)
            //Play button
            taskbar.SetOverlayIcon(play, "Playing");

        private void button2_Click(object sender, RoutedEventArgs e)
            //Pause button
            taskbar.SetOverlayIcon(pause, "Paused");

        private void button3_Click(object sender, RoutedEventArgs e)
            //Stop button
            taskbar.SetOverlayIcon(stop, "Stopped");

Developing for Windows 7: Taskbar #2: Progress Bar:

        private void slider_seek_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
            taskbar.SetProgressValue((int)slider_seek.Value, (int)slider_seek.Maximum);
            taskbar.SetProgressState(TaskbarProgressBarState.Paused); //Yellow
            taskbar.SetProgressState(TaskbarProgressBarState.Error); //Red
            taskbar.SetProgressState(TaskbarProgressBarState.Normal); //Green

Developing for Windows 7: Taskbar #3: Controlling the (Windows Aero) Thumbnail

        using System.Windows.Interop;
        private void Window_LayoutUpdated(object sender, EventArgs e)
            Vector v = VisualTreeHelper.GetOffset(mediaElement1);
            TaskbarManager.Instance.TabbedThumbnail.SetThumbnailClip((new WindowInteropHelper(this)).Handle, new Rectangle((int)v.X, (int)v.Y, (int)mediaElement1.RenderSize.Width, (int)mediaElement1.RenderSize.Height));
            //For windows forms:
            //TaskbarManager.Instance.TabbedThumbnail.SetThumbnailClip(this.Handle, new Rectangle((int)v.X, (int)v.Y, (int)mediaElement1.RenderSize.Width, (int)mediaElement1.RenderSize.Height));

Developing for Windows 7: Taskbar #4: Taskbar Preview Buttons:

        private void Window_Loaded(object sender, RoutedEventArgs e)
            tbbPlay = new ThumbnailToolBarButton(icon_play, "Play");
            tbbPlay.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(button_play_Click);

            tbbPause = new ThumbnailToolBarButton(icon_pause, "Pause");
            tbbPause.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(button_pause_Click);

            tbbStop = new ThumbnailToolBarButton(icon_stop, "Stop");
            tbbStop.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(button_stop_Click);

            TaskbarManager.Instance.ThumbnailToolBars.AddButtons(new WindowInteropHelper(this).Handle, tbbPlay, tbbPause, tbbStop);
        //I just renamed button1/2/3 click events.. Note changed to "EventArgs e" from "RoutedEventArgs e".
        private void button_play_Click(object sender, EventArgs e)
            taskbar.SetOverlayIcon(icon_play, "Playing");
        private void button_pause_Click(object sender, EventArgs e)
            taskbar.SetOverlayIcon(icon_pause, "Paused");
        private void button_stop_Click(object sender, EventArgs e)
            taskbar.SetOverlayIcon(icon_stop, "Stopped");

How to import freinds from Facebook to Google plus (via Yahoo and Gmail)

I know that there are tons of tutorials on this already, but well none of them actually worked for me. Here is how i did it.

Here are the four things that you will need:

  1. A Facebook account.
  2. A Yahoo Account (if you don’t already have one, sign up).
  3. A G-mail Account
  4. A Google plus account connected to your G-mail account.

The steps are pretty simple, shouldn’t take more than 5 minutes:

  1. Log in to (Follow these steps in Internet Explorer, i had trouble with Firefox in Yahooo mail with Firefox).If you get re-directed to the home page, click on mail.
  2. Go to the contacts tab and them click on import contacts. (This is why i recommended doing this in IE, The import contacts button didn’t work for me in Firefox)
  3. Click on the Facebook button.
  4. A window will popup, just follow the steps on it to log on to Facebook and allow access to yahoo.
  5. Once yahoo has finished importing your contacts click on ‘Actions’ then ‘Export all’. In the next window, export the ‘vCard Single File’ and save it somewhere.
  6. Then log on to G-mail (you can stop using IE now). Click on ‘Contacts’, then ‘More Actions”, then ‘Import’, then browse and import the file you saved from yahoo.
  7. Log on to Google+, Click on the circles button, then clock on ‘Find and Invite’, once you are there your G-mail contacts should appear in the list. you can now drag and drop people on to your circles to add/invite them on/to Google+.

Also you can add me to one of your circles :P.

Determine which operating system your program is running on with C#

Another tutorial from my developing for windows 7 series. How to check what OS the program is running on.

Layout of the form I'm using

OperatingSystem SystemInfo = Environment.OSVersion;
        public Form1()
            label2.Text = SystemInfo.VersionString;
            label1.Text = OSV();
        private string OSV()
            if (SystemInfo.Platform == System.PlatformID.Win32NT)
                if (SystemInfo.Version.Major == 5)
                    return "XP";
                else if (SystemInfo.Version.Major == 6)
                    if (SystemInfo.Version.Minor == 1)
                        return "Win 7";                    
                    return "Vista";
            return "";

Get every new post delivered to your Inbox.