I have ASP.Net project and I have added a reference of System.Windows.Forms to the project. Then I have created a class by inheriting it from a Windows control.
public class winButton : Button
{
public winButton()
{
this.Text = "Test";
}
}
Then I built the solution. Then I was expecting that I will be seeing an extra control of name ‘winButton’ in the toolbox. But I was not able to. So is it not correct what I am hoping? Thanks in advance.
In the same solution I created a Winform project. My custom is visible in the toolbox now. So perhaps, controls inherited from Winform Control are not supported in Webform (ASP.Net) projects.