System.Windows.Forms.Cursor.Cursor C# (CSharp) Method

Cursor() public method

public Cursor ( Type type, string resource ) : System
type System.Type
resource string
return System
		public Cursor(Type type, string resource) {
			using (Stream s = type.Assembly.GetManifestResourceStream (type, resource)) {
				if (s != null) {
					CreateCursor (s);
					return;
				}
			}

			// Try a different way, previous failed
			using (Stream s = Assembly.GetExecutingAssembly ().GetManifestResourceStream (resource)) {
				if (s != null) {
					CreateCursor (s);
					return;
				}
			}
			throw new FileNotFoundException ("Resource name was not found: `" + resource + "'");
		}
		#endregion	// Public Constructors

Same methods

Cursor::Cursor ( ) : System
Cursor::Cursor ( IntPtr handle ) : System
Cursor::Cursor ( SerializationInfo info, StreamingContext context ) : System
Cursor::Cursor ( System.Stream stream ) : System
Cursor::Cursor ( string fileName ) : System