Click here to Skip to main content
11,641,211 members (64,406 online)
Click here to Skip to main content
Add your own
alternative version

Creating Custom User Control Designers in ASP.NET

, 7 Apr 2005 144.2K 1.7K 61
An article on creating custom User Control designers in ASP.NET.
usercontroldesignersrc.zip
CustomDesignersWebCS
bin
CustomDesignersCS.dll
CustomDesignersWebCS.dll
CustomDesignersWebCS.csproj.webinfo
Global.asax
CustomDesignersWebVB
bin
CustomDesignersVB.dll
CustomDesignersWebVB.dll
CustomDesignersWebVB.vbproj.webinfo
Global.asax
CustomDesignersCS
bin
CustomDesignersCS.csproj.user
CustomDesignersVB
bin
CustomDesignersVB.dll
CustomDesignersVB.vbproj.user
usercontroldesignerssrc.zip
CustomDesignersCS.dll
CustomDesignersWebCS.dll
CustomDesignersWebCS.csproj.webinfo
Global.asax
CustomDesignersVB.dll
CustomDesignersWebVB.dll
CustomDesignersWebVB.vbproj.webinfo
Global.asax
CustomDesignersCS.csproj.user
CustomDesignersVB.dll
CustomDesignersVB.vbproj.user
using System;
using System.ComponentModel;
using System.Collections;
using System.Diagnostics;

namespace CustomDesignersCS
{
	/// <summary>
	/// Summary description for HeaderDesigner.
	/// </summary>
	public class HeaderDesigner : System.ComponentModel.Component
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public HeaderDesigner(System.ComponentModel.IContainer container)
		{
			///
			/// Required for Windows.Forms Class Composition Designer support
			///
			container.Add(this);
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		public HeaderDesigner()
		{
			///
			/// Required for Windows.Forms Class Composition Designer support
			///
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}


		#region Component Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			components = new System.ComponentModel.Container();
		}
		#endregion

		private string _Heading ;
		private string _SubHeading;

		[Description("Heading for the Page")]
		public string Heading
		{
			get
			{
				return _Heading;
			
			}
			set
			{
				_Heading=value;
			}
		}

		
		[Description("Sub Heading for the Page")]
		public string SubHeading
		{
			get
			{
				return _SubHeading;
			}
			set
			{
				_SubHeading=value;
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

srirambalaji
United States United States
Sriram works as Senior Technical Specialist at Infosys's Microsoft Technology Center.

He has been working on ASP.NET,VB.NET,C#,ASP and SQL Server for past 7 years. He loves to churn out innovative ideas.

During his freetime,you may find him hiking, humming a song in his karaoke or listening to inspiring music. You can reach him at srirambalaji_work@yahoo.com.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150731.1 | Last Updated 8 Apr 2005
Article Copyright 2005 by srirambalaji
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid