473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Where is a control's parameter list documented?

One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArgs, what?

Aug 16 '08 #1
6 1407
On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@somewhere.comwrote:
>One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArgs, what?
I'm not sure I understand your question. I don't think the list of
all event parameters used by a control is a useful thing to know.

A control raises some number of events. When the handler for an event
is called, an event parameter is passed. Each event has a specific
parameter type.

If you want to know which parameter a specific event uses, you can
either look it up in the documentation, or code the parameter as
something clearly illegal like 'string' and the compiler error message
will tell you what is expected (unless you are using VB with OPTION
STRICT OFF, in which case you need to bit the bullet and change to
OPTION STRICT ON).
Aug 17 '08 #2
"Jack Jackson" <jj******@cinnovations.netwrote in message
news:30********************************@4ax.com...
On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@somewhere.comwrote:
>>One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArgs, what?

I'm not sure I understand your question. I don't think the list of
all event parameters used by a control is a useful thing to know.

A control raises some number of events. When the handler for an event
is called, an event parameter is passed. Each event has a specific
parameter type.

If you want to know which parameter a specific event uses, you can
either look it up in the documentation, or code the parameter as
something clearly illegal like 'string' and the compiler error message
will tell you what is expected (unless you are using VB with OPTION
STRICT OFF, in which case you need to bit the bullet and change to
OPTION STRICT ON).
Looking --it-- up in documentation is the task I'm trying to determine Jack.
Here and there I see a parameter list mentioned in he documentation; not
clearly identified as such and then not consistently as every event of every
method appears to support at least two parameters. Since there are different
parameter names and types I've remained uninformed and have relied on
Intellisense to give me some kind of clue but not much can be inferred from
Intellisense.

It would be very useful IMO if this context of passing arguments using
parameters were documented better as clearly the construct is fundamental to
the method or it would not be used at all so why not then expound on the
scope of the types we may only infer by reading some arbitrary name; and an
arbitrary name that does not lead anywhere specific in the current
documentation as my meager attempts to find have failed to produce in any
circumstance but accidently.

Aug 18 '08 #3
On Mon, 18 Aug 2008 09:51:09 -0500, "HillBilly"
<so******@somewhere.comwrote:
>"Jack Jackson" <jj******@cinnovations.netwrote in message
news:30********************************@4ax.com.. .
>On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@somewhere.comwrote:
>>>One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArgs, what?

I'm not sure I understand your question. I don't think the list of
all event parameters used by a control is a useful thing to know.

A control raises some number of events. When the handler for an event
is called, an event parameter is passed. Each event has a specific
parameter type.

If you want to know which parameter a specific event uses, you can
either look it up in the documentation, or code the parameter as
something clearly illegal like 'string' and the compiler error message
will tell you what is expected (unless you are using VB with OPTION
STRICT OFF, in which case you need to bit the bullet and change to
OPTION STRICT ON).

Looking --it-- up in documentation is the task I'm trying to determine Jack.
Here and there I see a parameter list mentioned in he documentation; not
clearly identified as such and then not consistently as every event of every
method appears to support at least two parameters. Since there are different
parameter names and types I've remained uninformed and have relied on
Intellisense to give me some kind of clue but not much can be inferred from
Intellisense.

It would be very useful IMO if this context of passing arguments using
parameters were documented better as clearly the construct is fundamental to
the method or it would not be used at all so why not then expound on the
scope of the types we may only infer by reading some arbitrary name; and an
arbitrary name that does not lead anywhere specific in the current
documentation as my meager attempts to find have failed to produce in any
circumstance but accidently.
Sorry, I don't understand what the problem is. Can you give an
example?
Aug 18 '08 #4

"Jack Jackson" <jj******@cinnovations.netwrote in message
news:mh********************************@4ax.com...
On Mon, 18 Aug 2008 09:51:09 -0500, "HillBilly"
<so******@somewhere.comwrote:
>>"Jack Jackson" <jj******@cinnovations.netwrote in message
news:30********************************@4ax.com. ..
>>On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@somewhere.comwrote:

One question I have not figured out is how to learn which event
parameter
list is supported by a control? EventArgs, CommandEventArgs, what?

I'm not sure I understand your question. I don't think the list of
all event parameters used by a control is a useful thing to know.

A control raises some number of events. When the handler for an event
is called, an event parameter is passed. Each event has a specific
parameter type.

If you want to know which parameter a specific event uses, you can
either look it up in the documentation, or code the parameter as
something clearly illegal like 'string' and the compiler error message
will tell you what is expected (unless you are using VB with OPTION
STRICT OFF, in which case you need to bit the bullet and change to
OPTION STRICT ON).

Looking --it-- up in documentation is the task I'm trying to determine
Jack.
Here and there I see a parameter list mentioned in he documentation; not
clearly identified as such and then not consistently as every event of
every
method appears to support at least two parameters. Since there are
different
parameter names and types I've remained uninformed and have relied on
Intellisense to give me some kind of clue but not much can be inferred
from
Intellisense.

It would be very useful IMO if this context of passing arguments using
parameters were documented better as clearly the construct is fundamental
to
the method or it would not be used at all so why not then expound on the
scope of the types we may only infer by reading some arbitrary name; and
an
arbitrary name that does not lead anywhere specific in the current
documentation as my meager attempts to find have failed to produce in any
circumstance but accidently.

Sorry, I don't understand what the problem is. Can you give an
example?
Noting I'm still trying to make sense of delegates and events I refer to the
earlier examples I mentioned such as EventArgs, CommandEventArgs and the
many other such "type" I see used with the actual parameter e.

Aug 18 '08 #5

So you want to understand the arguments of the events that are raised.
Use the MSDN documentation - Go to Help..Index in VS. Search for the
event name. Select the item from the left column of the results with the
event name followed by the word "event." It will tell you the event
type, which in turn will tell you the argument types.

For example, say you want to see what the parameters are for the
ListBox.SelectedIndexChanged event. Search for "SelectedIndexChanged"
then click "SelectedIndexChanged event" in the results . It details that
the event is of type "EventHandler". Clicking on EventHandler takes you
to the EventHandler page, where you can see that the specific object
parameter is of type EventArgs.

A better example - the ItemDataBound event of a repeater control.
Looking up Repeater.ItemDataBound, I find that the event is of type
RepeaterItemEventHandler. Clicking the type takes me to its definition
page where I can see that the specific object argument is of type
RepeaterItemEventArgs.
--
breitak67
Aug 19 '08 #6

"breitak67" <gu***@unknown-email.comwrote in message
news:0b******************************@nntp-gateway.com...
>
So you want to understand the arguments of the events that are raised.
Use the MSDN documentation - Go to Help..Index in VS. Search for the
event name. Select the item from the left column of the results with the
event name followed by the word "event." It will tell you the event
type, which in turn will tell you the argument types.

For example, say you want to see what the parameters are for the
ListBox.SelectedIndexChanged event. Search for "SelectedIndexChanged"
then click "SelectedIndexChanged event" in the results . It details that
the event is of type "EventHandler". Clicking on EventHandler takes you
to the EventHandler page, where you can see that the specific object
parameter is of type EventArgs.

A better example - the ItemDataBound event of a repeater control.
Looking up Repeater.ItemDataBound, I find that the event is of type
RepeaterItemEventHandler. Clicking the type takes me to its definition
page where I can see that the specific object argument is of type
RepeaterItemEventArgs.
--
breitak67
Very insightful thank you. The walk-through also shows the term "event" is
categorized as "Syntax" which answers one of my questions "where in the
documentation" such information is categorized and expected to be found.
Aug 19 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: zapazap | last post by:
-- Pythonic control of Windows GUI application: tabs and listviews Dear Snake-charming Gurus, I have learned to manipulate some controls ("Button", "ComboBox", etc) through such means as: ...
17
by: Grant Edwards | last post by:
I'm trying to figure out how to sort a list, and I've run into a problem that that I have tripped over constantly for years: where are the methods of basic types documented? The only thing I can...
6
by: David Isaac | last post by:
Default parameter values are evaluated once when the function definition is executed. Where are they stored? (A guess: in a dictionary local to the function.) Where is this documented? As a...
1
by: sbxjld | last post by:
Hi, I would like to get information about the db2 paramater READLIMIT, that was introduced in V7R1. I cannot find the location of a IBM manula describing the option : who can help me ? Thanks...
4
by: Brian Shannon | last post by:
I have 3 combo boxes and two date text boxes on a .aspx page. The user can fill in any of the 5 controls or none to filter a datagrid. I was hoping someone could explain how to efficiently build...
17
by: Alan Silver | last post by:
Hello, I have a page which I am converting to use themes. The page has an HTML <input type="image"> element that is used to post to another page. I would like to replace this with a server...
3
by: Developer in California | last post by:
I am working on developing a generic Web framework using Master Pages in ASP.NET 2.0. What I have done is created a PageRenderer class which has a public method which will retrieve the path of the...
6
by: Dabbler | last post by:
I have a dropdownlist in a GridView ItemTemplate. I need to bind the ddl to an SqlDataSource, then have a value from a boundfield in the row be passed as the keyfield for select where clause. Im...
4
by: Sevu | last post by:
I am working with ASP.NET.I am using ReportViwer Control to show my report.I like to add dropdownlist with in the reportviewer control. ( Not top to the control some thing like that).I need to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.