473,385 Members | 1,449 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,385 software developers and data experts.

Events Multi

Hi,
How can I now witch events happend in the code

.....
Private Sub btnToetsenbord1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles
btnToetsenbord1.Click,btnToetsenbord2.Click,btnToe tsenbord3.Click
.......
--
Thx

JoskeXP(Belgium)

Nov 21 '05 #1
7 1029
Hi,

It works

--
Thx

JoskeXP
"Cor Ligthert [MVP]" wrote:
JoskeXP,

More possibilites roughly typed here one.

\\\\
Select Case directcast(sender, button).name
case "btnToetsenbord1"
......
case .............
.......
end select
///

It is in my opinion not needed to tell that you are from Belgium. In my
opinion is for those who (really) know what Belgium is your name enough.

:-)

I hope this helps,

Cor

Nov 21 '05 #2
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
More possibilites roughly typed here one.

\\\\
Select Case directcast(sender, button).name
case "btnToetsenbord1"
......
case .............
.......
end select
///


.... I prefer:

\\\
Dim SourceControl As Button = DirectCast(sender, Button)
Select Case True
Case SourceControl Is Me.Button1
...
Case SourceControl Is Me.Button2
...
...
End Select
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3
Herfried,
\\\
Dim SourceControl As Button = DirectCast(sender, Button)
Select Case True
Case SourceControl Is Me.Button1
...
Case SourceControl Is Me.Button2
...
...
End Select
///


Better, however probably one I don't remember me so easy as the other one,
however I will try

:-)

Cor
Nov 21 '05 #4
JoskeXP,

More possibilites roughly typed here one.

\\\\
Select Case directcast(sender, button).name
case "btnToetsenbord1"
......
case .............
.......
end select
///

It is in my opinion not needed to tell that you are from Belgium. In my
opinion is for those who (really) know what Belgium is your name enough.

:-)

I hope this helps,

Cor
Nov 21 '05 #5
Hi,

It works

--
Thx

JoskeXP
"Cor Ligthert [MVP]" wrote:
JoskeXP,

More possibilites roughly typed here one.

\\\\
Select Case directcast(sender, button).name
case "btnToetsenbord1"
......
case .............
.......
end select
///

It is in my opinion not needed to tell that you are from Belgium. In my
opinion is for those who (really) know what Belgium is your name enough.

:-)

I hope this helps,

Cor

Nov 21 '05 #6
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
More possibilites roughly typed here one.

\\\\
Select Case directcast(sender, button).name
case "btnToetsenbord1"
......
case .............
.......
end select
///


.... I prefer:

\\\
Dim SourceControl As Button = DirectCast(sender, Button)
Select Case True
Case SourceControl Is Me.Button1
...
Case SourceControl Is Me.Button2
...
...
End Select
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7
Herfried,
\\\
Dim SourceControl As Button = DirectCast(sender, Button)
Select Case True
Case SourceControl Is Me.Button1
...
Case SourceControl Is Me.Button2
...
...
End Select
///


Better, however probably one I don't remember me so easy as the other one,
however I will try

:-)

Cor
Nov 21 '05 #8

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

Similar topics

5
by: John Champaign | last post by:
Hi all, I'm working on an educational applet for a child with special needs. He's got a bit of a trick to make my life more difficult... To interact with the applet he needs to click on...
3
by: Sasha | last post by:
Hi everyone, Here is my problem: I have the following classes: - DataNode - this class is designed to hold some data and will be contained in a tree like data structure DataTree. When...
1
by: Bruce M. Carroll | last post by:
I am doing some work a distributed application, which uses events and remoting to accomplish the signaling between applications. This all works. The problem I have (I think) is that since...
4
by: LP | last post by:
Hello! I am still transitioning from VB.NET to C#. I undertand the basic concepts of Delegates, more so of Events and somewhat understand AsyncCallback methods. But I need some clarification on...
1
by: Tebogo Tefo via .NET 247 | last post by:
Hi I have a user control that contains three dropdownlists that I populate according to what was selected in the other dropdownlist (i.e. populate dropdownlist2 after selecting a value in...
2
by: niels.froehling | last post by:
Hy; I'm stucked in modifying events to make a multi-select select-input being additive/subtractive only. Because I should offer a solution similar to that select for DAUs (aka. MostIdioticUser)...
15
by: Bryce K. Nielsen | last post by:
I have an object that starts a thread to do a "process". One of the steps inside this thread launches 12 other threads via a Delegate.BeginInvoke to process. After these 12 threads are launched,...
3
by: daan | last post by:
Hello, I have a problem and I can't get the solution for it :( I have a com dll, which i imported as a reference. The com object is part of a class which is multithreaded and will create...
0
by: BigAl.NZ | last post by:
Hi Guys, I am trying to write/copy some code that uses events with a GPS. Everytime the GPS position updates the event fires. The GPS code is from a SDK Library that I got called GPS Tools...
15
by: colin | last post by:
Hi, Im familiar with c,c++ etc, and Ive spent a week trying to write my first app in c# it works reasonably well, but im having difficulty getting to grips with inter thread signalling etc. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.