473,796 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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, CommandEventArg s, what?

Aug 16 '08 #1
6 1444
On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@somew here.comwrote:
>One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArg s, 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******@cinno vations.netwrot e in message
news:30******** *************** *********@4ax.c om...
On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@somew here.comwrote:
>>One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArg s, 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******@somew here.comwrote:
>"Jack Jackson" <jj******@cinno vations.netwrot e in message
news:30******* *************** **********@4ax. com...
>On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@some where.comwrote:
>>>One question I have not figured out is how to learn which event parameter
list is supported by a control? EventArgs, CommandEventArg s, 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
documentatio n 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******@cinno vations.netwrot e in message
news:mh******** *************** *********@4ax.c om...
On Mon, 18 Aug 2008 09:51:09 -0500, "HillBilly"
<so******@somew here.comwrote:
>>"Jack Jackson" <jj******@cinno vations.netwrot e in message
news:30****** *************** ***********@4ax .com...
>>On Sat, 16 Aug 2008 16:04:23 -0500, "HillBilly"
<so******@som ewhere.comwrote :

One question I have not figured out is how to learn which event
parameter
list is supported by a control? EventArgs, CommandEventArg s, 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
Intellisens e to give me some kind of clue but not much can be inferred
from
Intellisens e.

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
documentati on as my meager attempts to find have failed to produce in any
circumstanc e 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, CommandEventArg s 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.Selecte dIndexChanged event. Search for "SelectedIndexC hanged"
then click "SelectedIndexC hanged event" in the results . It details that
the event is of type "EventHandl er". 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.ItemDa taBound, I find that the event is of type
RepeaterItemEve ntHandler. Clicking the type takes me to its definition
page where I can see that the specific object argument is of type
RepeaterItemEve ntArgs.
--
breitak67
Aug 19 '08 #6

"breitak67" <gu***@unknow n-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.Selecte dIndexChanged event. Search for "SelectedIndexC hanged"
then click "SelectedIndexC hanged event" in the results . It details that
the event is of type "EventHandl er". 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.ItemDa taBound, I find that the event is of type
RepeaterItemEve ntHandler. Clicking the type takes me to its definition
page where I can see that the specific object argument is of type
RepeaterItemEve ntArgs.
--
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
3912
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: win32gui.SendMessage(hwnd, win32con.BM_GETCHECK, 0 ,0) win32gui.SendMessage(hwnd, win32con.CB_GETCOUNT, 0 ,0)
17
2169
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 find on a list's sort() method is in the tutorial where it states: sort() Sort the items of the list, in place. Doesn't the list method would accept a callable to be used as a
6
1476
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 Python newbie I found this behavior quite surprising. Is it common in many other languages? Is it unsurprising if I look at it right? Thanks,
1
1688
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 Jean-Louis
4
3806
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 the where clause of a sql string to send to SQL 2000 for a data set. Currenly I check each control with an IF statement to determine if something is filled in. If there is I begin building the where clause. Below is what I have done (and it...
17
3212
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 control so I can add a skinid. I tried adding runat="server" and the skinid to the existing control, but that didn't work. Any other ideas? TIA --
3
11590
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 content I want to execute based on the name of the asp:Content control. As shown in the code snippet below, to get the content I want to display, I call the GetContentPagePath public method in PageRenderer passing a string duplicating the value...
6
8274
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 trying to load the ddl with a list of dates from another table keyed on GridView row field that only apply to this row. Any suggestions would be appreciated.
4
4477
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 place dropdown near to Export link ( Excel and PDF Export).Is it possible to add at the dropdown list with in report viewer control?. I found the property as ReportViewer.Controls.Add.But its not working.Please help me. Regards, S.Sevugan.
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.