What I have done (If I remember correctly) is ...

Select case true
        case sender is SomeObject1
        case sender is someObject2
        ...
end select

-----Original Message-----
From: Rathna Raj [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 8:16 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Who did it?


You can Typecast the sender as Control and use the name or Tag property to
find out who.

 -----Original Message-----
From:   Torben Frandsen [mailto:[EMAIL PROTECTED]]
Sent:   Friday, May 31, 2002 5:44 PM
To:     [EMAIL PROTECTED]
Subject:        [DOTNET] Who did it?

[VB.Net] I'm thinking of writing a common validator that will handle the
Validating even of multiple controls. I need to know which control raised
the event. Is that possible? I can't seem to find anything in the sender
object.

Med venlig hilsen / Kind regards,

Torben Frandsen, IT-koordinator
=======================
Belman Production A/S
Malervej 4, DK-6710 Esbjerg V
Tel.: +45 76 12 26 26
Fax: +45 75 15 59 59
ICBM: 55.52, -8.43
=======================
The Bible, Shakespeare, Winnie the Pooh. What remains are merely prefaces
and footnotes to these three.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to