Click here to Skip to main content
15,889,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create array textbox in design time Pin
cocoonwls16-Apr-08 16:27
cocoonwls16-Apr-08 16:27 
GeneralSample XNA solutions with .tga files. Pin
NarVish15-Apr-08 18:42
NarVish15-Apr-08 18:42 
GeneralRe: Sample XNA solutions with .tga files. Pin
MarkB77715-Apr-08 18:59
MarkB77715-Apr-08 18:59 
QuestionThread communication & Other RTOS concepts Pin
tvis15-Apr-08 17:38
tvis15-Apr-08 17:38 
GeneralRe: Thread communication & Other RTOS concepts Pin
Zoltan Balazs15-Apr-08 19:48
Zoltan Balazs15-Apr-08 19:48 
GeneralAnonymous Delegate with Anonymous return value Pin
John Wolfe15-Apr-08 14:31
John Wolfe15-Apr-08 14:31 
GeneralRe: Anonymous Delegate with Anonymous return value Pin
K.L.K15-Apr-08 18:12
K.L.K15-Apr-08 18:12 
GeneralAbstract classes - returning a value to the base. Pin
MarkB77715-Apr-08 13:05
MarkB77715-Apr-08 13:05 
Hi,

I was having a read of this article before.

When we override something like a keypress we use the below code:

<br />
        protected override void OnKeyPress(KeyPressEventArgs e)<br />
        {<br />
                 // Do stuff<br />
            <br />
 	         base.OnKeyPress(e);<br />
        }<br />


In the article he declares the methods in the abstract class like this:

<br />
        public String Delete()<br />
        {<br />
            return "Employee " + id + " " + <br />
                      lname + " " + fname + <br />
                      " deleted";<br />
        }<br />


and implements it like this:

<br />
        public new String Delete()<br />
        {<br />
            return base.Delete();<br />
        }<br />


Question 1. What happened to the override like in the Microsoft class?

Question 2. How could I declare a method that looks the same as the Microsoft one?

Question 3. Does anyone know where the System.Windows.Forms abstract classes are located? I tryed to find the answer myself on reflector but could not find anything that is overrided under the namespace.


Cheers,


GeneralRe: Abstract classes - returning a value to the base. Pin
Luc Pattyn15-Apr-08 13:24
sitebuilderLuc Pattyn15-Apr-08 13:24 
GeneralRe: Abstract classes - returning a value to the base. Pin
MarkB77715-Apr-08 13:55
MarkB77715-Apr-08 13:55 
GeneralRe: Abstract classes - returning a value to the base. Pin
Luc Pattyn15-Apr-08 14:03
sitebuilderLuc Pattyn15-Apr-08 14:03 
GeneralRe: Abstract classes - returning a value to the base. Pin
Luc Pattyn15-Apr-08 14:16
sitebuilderLuc Pattyn15-Apr-08 14:16 
GeneralSearching for an open socket on a local network Pin
Jordanwb15-Apr-08 12:30
Jordanwb15-Apr-08 12:30 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 13:27
sitebuilderLuc Pattyn15-Apr-08 13:27 
GeneralRe: Searching for an open socket on a local network Pin
Jordanwb15-Apr-08 13:36
Jordanwb15-Apr-08 13:36 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 13:44
sitebuilderLuc Pattyn15-Apr-08 13:44 
GeneralRe: Searching for an open socket on a local network Pin
Jordanwb15-Apr-08 13:53
Jordanwb15-Apr-08 13:53 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 14:02
sitebuilderLuc Pattyn15-Apr-08 14:02 
GeneralRe: Searching for an open socket on a local network Pin
Jordanwb15-Apr-08 14:16
Jordanwb15-Apr-08 14:16 
GeneralRe: Searching for an open socket on a local network Pin
Luc Pattyn15-Apr-08 14:24
sitebuilderLuc Pattyn15-Apr-08 14:24 
GeneralRe: Searching for an open socket on a local network [modified] Pin
Jordanwb15-Apr-08 14:29
Jordanwb15-Apr-08 14:29 
GeneralProblem with publishing an application Pin
EladKatz15-Apr-08 12:00
EladKatz15-Apr-08 12:00 
GeneralRe: Problem with publishing an application Pin
Judah Gabriel Himango15-Apr-08 12:21
sponsorJudah Gabriel Himango15-Apr-08 12:21 
QuestionRe: Problem with publishing an application Pin
EladKatz15-Apr-08 19:56
EladKatz15-Apr-08 19:56 
AnswerRe: Problem with publishing an application Pin
Judah Gabriel Himango16-Apr-08 4:10
sponsorJudah Gabriel Himango16-Apr-08 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.