Wednesday, November 16, 2011

My.Resources in C#

The equivalent of:

My.Resources

in VB.NET is:

Properties.Resources

in C#.

So,

Me.Icon = My.Resources.AppIcon

in VB.NET is equivalent to:

this.Icon = Properties.Resources.App_Icon;

in C#.