473,473 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

new to c#: How to create event handlers for a form control?

I am new to c#

In VB when I want to create an event handler for a form control I select the
control in the editor left combo box and
then select from the editor right combo box the event.

How do you do it in c# ?

Thank you!
Best Regards,
Alejandro Lapeyre
Nov 17 '05 #1
3 1579
Alejandro,

Probably the easiest way is to select the control that you want an event
handler and view the properties for it. In the properties window you should
see a icon that looks like a lighting bold at the top this is switches the
view from properties to events. When you are in event view just find the
event you want to attach to and double click it. Visual Studio will create
the event handler and place you in code view in the event handler.

Michael

"Alejandro Lapeyre" <Al**************@jotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am new to c#

In VB when I want to create an event handler for a form control I select
the control in the editor left combo box and
then select from the editor right combo box the event.

How do you do it in c# ?

Thank you!
Best Regards,
Alejandro Lapeyre

Nov 17 '05 #2
OLE!!!

Thanks!!
Alejandro Lapeyre

"Michael Cierkowski" <MC*********@hotmail.com> escribió en el mensaje
news:eM**************@TK2MSFTNGP09.phx.gbl...
Alejandro,

Probably the easiest way is to select the control that you want an event
handler and view the properties for it. In the properties window you
should see a icon that looks like a lighting bold at the top this is
switches the view from properties to events. When you are in event view
just find the event you want to attach to and double click it. Visual
Studio will create the event handler and place you in code view in the
event handler.

Michael

"Alejandro Lapeyre" <Al**************@jotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am new to c#

In VB when I want to create an event handler for a form control I select
the control in the editor left combo box and
then select from the editor right combo box the event.

How do you do it in c# ?

Thank you!
Best Regards,
Alejandro Lapeyre


Nov 17 '05 #3
I just wanted to thank you again for you answer

I am just starting to learn C#

I love this newsgroup
I know we do it just for free and just to know we helped.
Its wonderful to know people interact without event knowing nothing from
each other.
But we know there is a person there. A life, maybe a wife, maybe a dog.
(like me)
Maybe one of the lives, in one moment, we didnt choose.

In this days of trolling, a Hello! and to all the world here.

Best Regards,
from Buenos Aires, Argentina
Alejandro Lapeyre
Nov 17 '05 #4

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

Similar topics

18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
4
by: Ron Gliane | last post by:
Hi, this seems like something so basic that there must be some way to do it...Is there a way for Visual Studio or some other tool to let me see Events as they are raised in an application? For...
1
by: Richard W | last post by:
I have a very simple web page (ASP.NET) that I am trying to build. On the web page is a checkbox that enables or disables other controls based upon the checked status. However, .NET fails to...
3
by: JohnR | last post by:
I have a form with a number of text boxes, comboboxes etc. What I would like to do is create an event handler for the "mouseenter" event for each of the controls whereby I display information...
6
by: Kevin Attard | last post by:
I am using a GridView inside a UserControl which has a template column for deleting the rows. Before databinding the gridview i am attaching the RowCommand and RowDataBound event. I am using the...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
7
by: Dom | last post by:
In CSharp, can you have multiple handlers for a single event? For example, for a textbox TextChanged event, can I have two separate handlers called up? I have 4 text boxes, and the TextChanged...
8
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query...
0
by: \(O\)enone | last post by:
I'm working on some code which dynamically adds WinForms controls to a form. It's all working well but I'm having to manually call AddHandler repeatedly for each event I am using each time I add...
0
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,...
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.