PC Review


Reply
Thread Tools Rate Thread

How to derive from a label?

 
 
Richard Lewis Haggard
Guest
Posts: n/a
 
      27th Aug 2006
I'm trying to derive a class from the Label class and things are not going
quite right.

I derived the class by doing the obvious:

public class LabelGrid : Label

But I don't seem to be able to get the 2005 editor to provide method over
rides for events such as OnPaintBackground, etc. If I manually enter in the
appropriate wording then the over ride works, but it would seem like the IDE
should provide some sort of automatic means of over riding a member function
from the base class. What does one have to do in order to get the IDE to
over ride a base class function?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com


 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      27th Aug 2006
Using 2005; If I create a class LabelGrid : Label and type "override"
(and press space), then the IDE immediately displays ~160 methods for
me to override via intellisense. If I select one and press Select tab
then it stubs it out for me, so I think all is well. Are you perhaps
looking in the designer (events panel)? Note that overrides are not
events.

Marc

 
Reply With Quote
 
Richard Lewis Haggard
Guest
Posts: n/a
 
      28th Aug 2006
Ah! So THAT's the secret! I was sure that there was some easier way of
getting the over ride in place but couldn't find it on my own. I bet there's
documentation on all of these things somewhere but that's something else
I've yet to find. Thanks for the tip.
--
Richard Lewis Haggard
www.Haggard-And-Associates.com

"Marc Gravell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Using 2005; If I create a class LabelGrid : Label and type "override"
> (and press space), then the IDE immediately displays ~160 methods for
> me to override via intellisense. If I select one and press Select tab
> then it stubs it out for me, so I think all is well. Are you perhaps
> looking in the designer (events panel)? Note that overrides are not
> events.
>
> Marc
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to derive a formula from the given example pol Microsoft Excel Discussion 1 5th Nov 2008 10:57 AM
What formulae to derive? =?Utf-8?B?SmVmZnJleQ==?= Microsoft Excel Worksheet Functions 1 4th May 2007 12:42 AM
Derive Report Column Label from Query result Andre Laplume via AccessMonster.com Microsoft Access Reports 4 29th Jun 2005 08:56 PM
Derive From CancelEventArgs Gates72 Microsoft C# .NET 4 26th Feb 2005 07:47 AM
Not Recognising Derive Dave Windows XP General 2 16th Jul 2004 09:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:33 PM.