Jump to content
Xtreme .Net Talk

Kaskooye

Members
  • Posts

    4
  • Joined

  • Last visited

About Kaskooye

  • Birthday 11/20/1966

Personal Information

  • Occupation
    Programmer
  • Visual Studio .NET Version
    VS Professional 2003 / .Net Framework 1.1
  • .NET Preferred Language
    VB.Net, C#

Kaskooye's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. >> Dynamic_Sysop : your piec of code is better than what I've already found... ...but I still can't get the difference between "click" and "double click"... >>PlausiblyDamp : I do agree with you concerning code hard to read or maintain, it certainly will will not make life easier when used for handling 15 different events... But let's says you have to trap focus(in & out) and keystroke on a textbox. Does it make sense to add just one handler to catch what happens ? I do think so... I have to leave now. Have a nice evening, folks !
  2. I'm afraid to tell you... There is NO particular reason ! Please forgive me !;-) I'm just on my way to migrate from VB6 to .NET, and trying to undertand the underlying logic of it. I just guess (?!) that replacing control arrays with generic handlers should permit a more flexible way to handle different events in the same place...
  3. I already got the sender.name ! I'm just looking for some kind of "e.name" to mention that either Enter or DoubleClick have been fired... Thanks anyway. J.Ph.
  4. Hi, I'm trying to build a generic event handler like this one : Private sub myEventHandler(ByVal sender as System.Object, e as System.Eventargs) handles Textbox1.Enter, TextBox2.DoubleClick, Button1.Click 'Let's do some stupid stuff msgbox (sender.name & " has fired event " & e.GetType.toString) End sub As you may guess, i'd like to know wich event has been fired for any sender hooked by myEventHandler. I've parsed the Eventargs class documentation, but i ca'nt find any property returning the "name" of the event. Any ideas ? Thnks in advance, Jean-Philippe
×
×
  • Create New...