Following up on the Re-mapping the universe GUI

The well known, at least for us geek’s, technology used in the movie Minority Report, which enables one to control and manipulate the user interface with your hand movements. Perceptive Pixel showcased their technology with this video (Direct link):

Read the full article.

Microsoft has also some ideas on how they see this technology evolve. They call it the Microsoft Surface technology.

image

And now, the latest contenders in this fascinating technique is Cynergy Labs

image

You can watch the demo video here.

 

How to data bind a ToolStripComboBox

Normally, the ToolStripComboBox doesn’t have any properties for data binding. But you can still data bind this combobox with the method I describe here. Since the ToolStripComboBox hosts a Control that inherits from ComboBox, you can type cast to a ComboBox and do the data binding.

In this example I will bind the ToolStripComboBox to an ArrayList which consists of objects of the type ColorTypes.

So, lets get started. First create the ColorType class:

namespace WindowsFormsApplication1
{
public class ColorType
{
private int _ID;
public int ID
{
get
{
return _ID;
}
set
{
_ID = value;
}
}
private string _Name;
public string Name
{
get
{
return _Name;
}
set
{
_Name = value;
}
}
public ColorType(int id, string name)
{
_ID = id;
_Name = name;
}
}
}

Second, in the Form that hosts the TollStripComboBox, create an ArrayList of the objects. In the Load method, cast the ToolStripComboBox to a ComboBox and do the data binding. And finally, in the SelectedIndexChanged event for the ToolStripComboBox, type cast to a ComboBox and read out the SelectedValue property.

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
private ArrayList arrListColorTypes;
 
 
public Form1()
{
InitializeComponent();
arrListColorTypes = new ArrayList();
arrListColorTypes.Add(new ColorType(0, "Red"));
arrListColorTypes.Add(new ColorType(1, "Green"));
arrListColorTypes.Add(new ColorType(2, "Blue"));
}
private void Form1_Load(object sender, EventArgs e)
{
ComboBox cb = ((ComboBox)toolStripComboBox1.Control);
cb.DisplayMember = "Name";
cb.ValueMember = "ID";
cb.DataSource = arrListColorTypes;
}
private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
int index = Convert.ToInt32(((ComboBox)toolStripComboBox1.Control).SelectedValue);
switch (index)
{
case 0: // Do the Red dance
break;
case 1: // Do the Green dance
break;
case 2: // Do the Blue dance
break;
}
}
}
}

Microsoft Visual SourceSafe 2005 update

If you are working in a small team, or just as a single user, Team Foundation Server maybe isn’t exactly what you want to use. Maybe SourceSafe is the perfect companion for your source control system. In that case, Microsoft has just released an update for the 2005 release. You will find of the 64 bug fixes here. Here is the download link and the knowledge base article 943847. Among the fixes are compatibility fixes with Visual Studio 2008 and Windows Vista.

Step1. Version before update is 8.0.50727.42
Step1. Version before update is 8.0.50727.42

image
Step2.

image
Step3.

image
Step4.

image
 
Step5. It was a very quick installation, took about 40 seconds to complete.

image
 
Step6. After update the version is 8.0.50727.1551

 

How to upgrade your existing hard disk in Windows Vista without losing data (Part 2)

Here is the second part of complete PC backup/restore post. In this part I will cover the restore process. The first part is here.

Now, it is time to upgrade your hardware, and put in that new hard disk. After you have done that, put your Windows Vista boot DVD in your DVD drive and start up the PC. Make sure that your PC’s BIOS is set to boot from your DVD drive. Below are 9 screen shots showing each step in the process.

A screen shot of the first bott screen when you boot with your Windows Vista DVD.
1. This is the first boot screen.

A screen shot showing the screen were you set your language preferences.
2. Select your language

A screen shot showing install or repair.
3. Select the repair option.

Screen shot showing the Recovery Tools options.
4. Click on the Windows Complete PC Restore option.

Screen shot showing the scanning for backup disks.
5. Scanning for restore images.

Screen shot showing the backup image found.
6. Restore image found. Click Next.

Screen shot showing the the restore is ready to begin.
7. Click Finish.

Screen shot showing that you must cofirm that your hard disk will be formatted.
8. Put a checkmark to confirm that your C:\ will be formatted.

Screen shot showing restore in progress.
9. Restore in progress.

After the restore is finished, your PC will reboot. After that you have a fully restored PC.

A couple of things to keep in mind:

  • You can’t restore a 64bit image to a x86 booted system. (Or vice versa.)

If you try, you will get a dialog similar to this:

A screen shot showing the error message you will get when trying to restore a 64 bit image to a 32bit booted Windows PE.

  • Windows Vista may be in a de-activated state after restore, so you may have to activate your license again after the restore.