System.IO.Stream strm = null;
try
{
string curName = 'WindowsApplication1.Cursor1.cur';
strm = this.GetType().Assembly.GetManifestResourceStream(curName);
this.Cursor = new Cursor(strm);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
finally
{
if(strm != null)
strm.Close();
}
Share with