Using system.componentmodel; using system.collection; using system.diagnostics;
A summary description of Namespace WindowsApplication1 {/// /// component1. /// summary> /// #Region three methods for components / * // specifies the bitmap associated with the button type. [Toolboxbitmap (@ "c: / documents and settings / joe / mypics / myImage .bmp ")] // Specifies the bitmap associated with the Button type. [ToolboxBitmap (typeof (Button))] // Specifies a type that indicates the assembly to search, and the name // of an image resource to look for. [Toolboxbitmap (TypeOf (MyControl), "MyControlBitmap")] * / #ndregion public class mycomponent1: system.componentmodel.component {/// // The required designer variable. /// summary> private system.com = null; /// test c> is a method in the myclass c> class. /// < / summary>
Public String Test () {Return "Note";
/// Used to indeicate status. Description in the ";} private string ffield =" in the properties box! "; [[ Description ("The Image Associated with The Control"] PUBLIC STRING FIELD
{/// /// My test class /// summary>
Get {return ffield;} set {}} private string ffield1 = "Type in the property box!"; [Category ("Appearance")] Public String Field1 {/// /// My test class // / summary>
Get {returnifeld1;} set {}}
Public mycomponent1 (system.componentmodel.icontainer container) {// // Windows.Forms class write designer supports /// container.add (this); initializationComponent ();
// // Todo: Add any constructor code after the initializationComponent call //} public mycomponent1 () {///// windows.forms class writing Designer Support for /// initializationComponent ();
// // Todo: Add any constructor code after INITIALIZEComponent call //}
/// /// Clean all the resources being used. /// summary> Protected Override Void Dispose (Bool Disposing) {if (disponents! = Null) {components.dispose ();}} Base.Dispose
#REGION component designer generated code /// /// designer supports the required method - Do not use the code editor to modify the // / this method. /// summary> private vid initializecomponent () {components = new system.componentmodel.container ();} #ENDREGON}}