----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: karunreddi Message 2 in Discussion Yes it will happen in C#, suppose you have not declared any event for particular event handler it will throw error, where as in vb.net it wont do any thing.Like that somany differences are there betweek vb.net and c# Rgds Karun -----Original Message----- From: SriramParam [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 2:43 PM To: BDOTNET Subject: How to handle events in a Form? New Message on BDOTNET How to handle events in a Form? Reply Reply to Sender Recommend Message 1 in Discussion From: SriramParam Hi all.. I need some help on C# events.In a control, I declare an event and raise it on some particular action. When i don't have a event handler in the form where I am using this control it is giving me an runtime error. In VB.Net, i did'nt get a error when a event was not handled in a form. Is there any solution for this .Please reply ? For eg: I raised an event (Myevent) on KeyPress on the user control named GridControl. I used this GridControl in Form1.I did not have an event handler for Myevent. So, on executing the form and press any key there is a runtime error popping up.. View other groups in this category. DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
