Click here to Skip to main content
15,921,716 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to Determine which event fired Pin
gaxxx9-Apr-04 23:38
gaxxx9-Apr-04 23:38 
AnswerRe: How to Determine which event fired Pin
PaleyX10-Apr-04 2:20
PaleyX10-Apr-04 2:20 
GeneralRe: How to Determine which event fired Pin
gaxxx10-Apr-04 6:02
gaxxx10-Apr-04 6:02 
GeneralRe: How to Determine which event fired Pin
Ray Cassick11-Apr-04 6:33
Ray Cassick11-Apr-04 6:33 
GeneralRe: How to Determine which event fired Pin
gaxxx11-Apr-04 22:39
gaxxx11-Apr-04 22:39 
GeneralRe: How to Determine which event fired Pin
Dave Kreskowiak12-Apr-04 3:30
mveDave Kreskowiak12-Apr-04 3:30 
GeneralRe: How to Determine which event fired Pin
gaxxx12-Apr-04 8:55
gaxxx12-Apr-04 8:55 
GeneralRe: How to Determine which event fired Pin
Ray Cassick12-Apr-04 9:26
Ray Cassick12-Apr-04 9:26 
I would do 3 things.

1) Create a LIFO stack to hold the actual event data and write it to as file as needed. The stack class would also take care of adding the time stamp to each entry

2) Create an event handler for all the MouseEnter events for each button and have this handler write to your stack class when the mouse enters buttons


Private Sub MouseEnter(ByVal sender as Object, ByVal e as EventArgs) Handles Button1.MouseEnter, ... Buttonx.MouseEnter

   Dim B as Button = sender

   Stack.Push(B.name,"MouseEnter")

End Sub



3) Create an ecvent handler for all the MouseLeave events for each button and have this handler write to your stack class when the mouse leaves buttons

Private Sub MouseLeave(ByVal sender as Object, ByVal e as EventArgs) Handles Button1.MouseLeave, ... Buttonx.MouseLeave

   Dim B as Button = sender

   Stack.Push(B.name,"MouseLeave")

End Sub


This will take you down to needing only two event handlers to cover all your 'Buttons'.




Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.


GeneralRe: How to Determine which event fired Pin
gaxxx12-Apr-04 10:03
gaxxx12-Apr-04 10:03 
GeneralRe: How to Determine which event fired Pin
Ray Cassick12-Apr-04 10:13
Ray Cassick12-Apr-04 10:13 
GeneralRe: How to Determine which event fired Pin
Dave Kreskowiak12-Apr-04 10:50
mveDave Kreskowiak12-Apr-04 10:50 
QuestionBook in VB.NET? Pin
Toola9-Apr-04 22:16
Toola9-Apr-04 22:16 
AnswerRe: Book in VB.NET? Pin
Sarvesvara (BVKS) Dasa11-Apr-04 1:05
Sarvesvara (BVKS) Dasa11-Apr-04 1:05 
GeneralRe: Book in VB.NET? Pin
Prakash Nadar11-Apr-04 1:07
Prakash Nadar11-Apr-04 1:07 
AnswerRe: Book in VB.NET? Pin
T Manjaly15-Apr-04 13:11
T Manjaly15-Apr-04 13:11 
QuestionUsing picture boxes? Pin
Toola9-Apr-04 20:52
Toola9-Apr-04 20:52 
AnswerRe: Using picture boxes? Pin
Nadroj9-Apr-04 21:27
Nadroj9-Apr-04 21:27 
GeneralRe: Using picture boxes? Pin
Toola9-Apr-04 22:00
Toola9-Apr-04 22:00 
GeneralRe: Using picture boxes? Pin
Nadroj9-Apr-04 22:05
Nadroj9-Apr-04 22:05 
GeneralRe: Using picture boxes? Pin
Nick Parker10-Apr-04 7:55
protectorNick Parker10-Apr-04 7:55 
GeneralRe: Using picture boxes? Pin
Toola11-Apr-04 0:38
Toola11-Apr-04 0:38 
GeneralRegistry Search Launch condition for Office Version Pin
nvmoss9-Apr-04 10:17
nvmoss9-Apr-04 10:17 
GeneralRe: Registry Search Launch condition for Office Version Pin
Mike Dimmick10-Apr-04 4:04
Mike Dimmick10-Apr-04 4:04 
QuestionBinding Data!!?? Pin
Albadyiah9-Apr-04 5:54
Albadyiah9-Apr-04 5:54 
QuestionCrystal Reports??? Pin
hounetdev9-Apr-04 5:31
hounetdev9-Apr-04 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.