Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does Visual Inheritance work in .Net?
Message
From
18/06/2007 17:33:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
18/06/2007 17:19:44
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01234107
Message ID:
01234133
Views:
15
Calvin,

You didn't mention why you say it doesn't work. You might look however at:
public override rather than override public.

Tim

>What were you doing in Milledgeville? I went to High School there - Ga Military Colleage. We keep a small sailboat on Lake Sinclair so we are up there about every weekend.
>
>
>This code does not work. Can you tell me what I am doing wrong? Is it because this is a subclass of a subclass?
>
> public partial class wrLabel : OakLeaf.MM.Main.Windows.Forms.mmLabel
> {
>
>
> override public Font Font
> {
> get { return base.Font; }
> set { base.Font = value; }
> }
>
> public wrLabel()
> {
> InitializeComponent();
> base.Font = new Font("Arial", 8); // referencing System.Drawing.
> }
> }
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform