Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controls inheriting
Message
 
 
To
22/11/2004 19:13:15
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00963668
Message ID:
00963688
Views:
7
It worked :) , Thanks for your help!, Bonnie
>No problem, Rodolfo ...
>
>First, you have to be sure to compile your project. Then, click on the Browse button (on the Customize ToolBox form) and find your .DLL that you just compiled.
>
>~~Bonnie
>
>
>
>>Thanks for your answear Bonnie, I did it but now I cann't find my class in "Add/Remove items" Where is it?
>>
>>>Rodolfo,
>>>
>>>Basically, you'll want a class library that contains your sub-classed UI controls, like textbox, button, etc. Something like this:
>>>
>>>using System;
>>>using System.Data;
>>>using System.Web;
>>>using System.Web.UI.WebControls;
>>>using System.Web.UI.HtmlControls;
>>>
>>>namespace MyCompany.WebUI.MyClasses
>>>{
>>>	public class MyLabel: System.Web.UI.WebControls.Label
>>>	{
>>>		private string m_MyProperty;
>>>
>>>		// properties
>>>		public string MyProperty
>>>		{
>>>		   get {return this.m_MyProperty;}
>>>		   set {this.m_MyProperty = value;}
>>>		}
>>>
>>>	}
>>>
>>>	public class MyTextBox : System.Web.UI.WebControls.TextBox
>>>	{
>>>		// code here
>>>	}
>>>
>>>	public class MyButton : System.Web.UI.WebControls.Button
>>>	{
>>>		// code here
>>>	}
>>>}
>>>
>>>
>>>Add these to the ToolBox by right-clicking on the ToolBox and choosing Add/Remove Items.
>>>
>>>~~Bonnie
>>>
>>>
>>>
>>>>How could I create a class based on the system basic class "label", then drag and drop it on a web form, and finally be able to modify its methods and properties through the properties panel as I am used to doing with VFP.
Rodolfo Martín Villanueva
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform