1. The (Overrides) appears so you can select an overridable method in the
right hand drop down and it will
create the shell of the method you want to override.
For example, if I wanted to override the text property of my form I would
select overrides in the left hand drop down, then Text in the right hand
drop down, this would produce the following code...
Public Overrides Property Text() As String
Get
End Get
Set(ByVal Value As String)
End Set
End Property
This method will now override the default(base) Text property of the form.
2. Base class events are different from overrides as they are the base
events of whatever object you are working with. The overrides are the
methods etc.. Of the class that can be overridden.
It sounds to me like you should pick up a book on .NET programming so you
can learn the fundamental and powerful features of the framework.
Guy Harwood
Research & Development
www.hcs-ltd.co.uk
-----Original Message-----
From: Professional Windows Forms digest
[mailto:pro_windows_forms@p...]
Sent: 26 February 2003 00:11
To: pro_windows_forms digest recipients
Subject: pro_windows_forms digest: February 25, 2003
-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------
The URL for this list is:
http://p2p.wrox.com/list.asp?list=pro_windows_forms
PRO_WINDOWS_FORMS Digest for Tuesday, February 25, 2003.
1. Windows Form Event Handler
----------------------------------------------------------------------
Subject: Windows Form Event Handler
From: lu@n...
Date: Mon, 24 Feb 2003 06:22:53
X-Message-Number: 1
I have two questions and hope someone could help.
1. When creating a windows form event handler, I have to go to the Class
Name Dropdown box to choose "Base Class Events" or "Overrides" then
select the event from the Method Name dropdown box. But other controls'
events, e.g., command button, are directly accessible without dealing
with the base class. Why is the difference?
2. Between "Base Class Events" and "Overrides", what's the key difference
other than the syntax? Which way is better and why?
Many thanks.
---
END OF DIGEST
---
Developing C# Windows Software: A Windows Forms Tutorial
Do you want to use your C# knowledge to build Windows applications?
We will teach you the crucial Windows programming techniques that
you will need to start building your own fully featured applications.
http://www.wrox.com/ACON11.asp?ISBN=186100737X