473,503 Members | 479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Several component events going to the same Sub...


Below I just added the click events after the "Handles"
keyword. Is there a way to do this from the IDE?

****************
Private Sub MenuItem35_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem35.Click, MenuItem36.Click,
MenuItem37.Click

If sender Is MenuItem35 Then
language = Globals.Keyboard.German
ElseIf sender Is MenuItem36 Then
language = Globals.Keyboard.Italian
ElseIf sender Is MenuItem37 Then
language = Globals.Keyboard.French
End If

End Sub

Nov 20 '05 #1
1 906
* nobody <no*****@nonenetcom.net> scripsit:
Below I just added the click events after the "Handles"
keyword. Is there a way to do this from the IDE?
AFAIK no.
Private Sub MenuItem35_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem35.Click, MenuItem36.Click,
MenuItem37.Click


--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

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

Similar topics

0
2301
by: Patrick Blackman | last post by:
I have created a component in C# and have registered the component for use in com. I have put the following attributes on the component class : public class Thesaurus:Component
2
21444
by: Ed Sutton | last post by:
How can a WndProc be created inside a component? Currently I have a WndProc in my frmMain. It looks for WM_DEVICECHANGE messages for connection and removal events for a USB/Serial device. My...
3
9811
by: Sushil Srivastava | last post by:
Hi Guys, Would you be able to help me using C# GUI (with user interface component) in my MFC application. I have used managed extension, COM-interops, etc but problem is this C# component has...
0
851
by: Craig | last post by:
Hi I have a .Net component which exposes a number of events and properties. One of the properties is a read-only Status property, this property is updated by the component during a component...
3
4068
by: SenthilVel | last post by:
Hi I want to list the available "Component Services " (COM+) in a machine . i am trying to get the list of Componenet services in a machine using windows forms in dotnet , how can i retrive...
8
2161
by: TORQUE | last post by:
Hi, I am having some trouble with recording a field on a form into my Table after formatting it to calculate several fields on the form. If i just put the amount in the field and have it linked...
122
7209
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
1
1322
by: Mike | last post by:
Hi, I have a component that resides on the server side (distributed). This component will trigger some events that I need to catch in an ASP.NET form.
2
5478
by: egress | last post by:
Forgive me for stupid questions for I am new to serial IO programming. I am developing an app that will need to communicate with a device via RS232 protocol using a standard 9 pin serial cable. ...
0
7203
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
7089
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
7282
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
6995
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
5581
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,...
1
5017
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...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
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 ...
0
389
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.