473,396 Members | 2,039 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,396 software developers and data experts.

CheckedChanged question

What is the effect of the following line?
checkBox1_CheckedChanged(null,null);
Thanks,
Patrick.

Nov 15 '05 #1
3 2124
YOu probably won't notice a difference unless you are interrogating either
the sender, eventargs. It'll still behave just like anything else, except
that those two thing will be null, so you won't know what triggered the
event or any of the event args. Off the top of my head, I'm not sure what
benefit you'd derive from doing this but I don't think it would hurt except
that it goes against the whole sender/notification paragidm.
"Patrick De Ridder" <00@00.00> wrote in message
news:10***************@evisp-news-01.ops.asmr-01.energis-idc.net...
What is the effect of the following line?
checkBox1_CheckedChanged(null,null);
Thanks,
Patrick.

Nov 15 '05 #2
What does the line actually do?
Patrick.

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:OS**************@TK2MSFTNGP09.phx.gbl...
YOu probably won't notice a difference unless you are interrogating either
the sender, eventargs. It'll still behave just like anything else, except
that those two thing will be null, so you won't know what triggered the
event or any of the event args. Off the top of my head, I'm not sure what
benefit you'd derive from doing this but I don't think it would hurt except that it goes against the whole sender/notification paragidm.
"Patrick De Ridder" <00@00.00> wrote in message
news:10***************@evisp-news-01.ops.asmr-01.energis-idc.net...
What is the effect of the following line?
checkBox1_CheckedChanged(null,null);
Thanks,
Patrick.


Nov 15 '05 #3
It's just like a function call... I could call a Sum function which takes
in two arguments Sum(1, 1) or 0,0. You need to pass in something b/c it's
expecting something (object and eventargs) but you don't have to do anythign
with them.
"Patrick De Ridder" <00@00.00> wrote in message
news:10**************@evisp-news-01.ops.asmr-01.energis-idc.net...
What does the line actually do?
Patrick.

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:OS**************@TK2MSFTNGP09.phx.gbl...
YOu probably won't notice a difference unless you are interrogating either the sender, eventargs. It'll still behave just like anything else, except that those two thing will be null, so you won't know what triggered the
event or any of the event args. Off the top of my head, I'm not sure what benefit you'd derive from doing this but I don't think it would hurt

except
that it goes against the whole sender/notification paragidm.
"Patrick De Ridder" <00@00.00> wrote in message
news:10***************@evisp-news-01.ops.asmr-01.energis-idc.net...
What is the effect of the following line?
checkBox1_CheckedChanged(null,null);
Thanks,
Patrick.



Nov 15 '05 #4

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

Similar topics

5
by: Greg Hurlman | last post by:
I've got a very simple ASCX page, where once someone finishes a section and clicks the "Next >" button, the section they just finished is disabled, and the next section appears below it, and so on....
3
by: Jump Off! | last post by:
Hi, I work with ASP.NET v2 (visual web dev 2005 express) and, when i want to use the CheckedChanged Event of a checkbox, it doesn't work. I want to enable a button when checkbox is checked,...
3
by: Piotr Strycharz | last post by:
Hi, I have a Repeater with CheckBox in one of its columns. In ItemDataBound handler I'm doing: chk.CheckedChanged += new EventHandler(chk_CheckedChanged). The chk_CheckedChanged handler is...
2
by: dilip.movva | last post by:
Hi, In the ItemDataBound of my datagrid I am creating a checkbox dynamically. I have the eventhandler defined for CheckedChanged of the check box. The event is not firing. The grid is bound in the...
3
by: Alex | last post by:
i got a form with some checkboxes and they are set to be checked on design time... when the program loads it fires the CheckChanged event for every one of them.... there is any way to avoid this??...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.