C
Claire
Hi, Im new at user control writing in dotnet.
I've written a simple gradient painted panel control based on the
UserControl class.
It works reasonably, but the properties arent being persisted. Also I want
to expose the base Text property as I like how the IDE generates control
names automatically.
In the short term would someone tell me how to do these.
In the long term, has anyone written any articles explaining how to get
started on writing controls? My google skills are failing to find anything
written for noobs. A link would be appreciated
thanks
Claire
the following code is totally wrong in getting/setting text. I tried
base.text but there doesnt seem to be a base.text even though the compiler
tells me that my implementation hides it.
[Browsable(true)]
public override string Text
{
get
{
return base.Text
}
set
{
base.Text = value;
}
}
I've written a simple gradient painted panel control based on the
UserControl class.
It works reasonably, but the properties arent being persisted. Also I want
to expose the base Text property as I like how the IDE generates control
names automatically.
In the short term would someone tell me how to do these.
In the long term, has anyone written any articles explaining how to get
started on writing controls? My google skills are failing to find anything
written for noobs. A link would be appreciated
thanks
Claire
the following code is totally wrong in getting/setting text. I tried
base.text but there doesnt seem to be a base.text even though the compiler
tells me that my implementation hides it.
[Browsable(true)]
public override string Text
{
get
{
return base.Text
}
set
{
base.Text = value;
}
}