473,287 Members | 1,581 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,287 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 1402
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.