Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Problem

How to know which events fires from start of windows form running like load then textchanged etc.... .

I have some variables on load of form .

these variables have override to it .

but i dont know on which place or event fires after load

this windows form is very big coding lines

so that what actually need

Are there are any ways or tools tell me the events fires from program start to specified Process .

Also this is not normal event as load ,text changed these custom events is customized or done by another developers and i dont know any thing about source code .



so that i need any way by debug or trace or any way tell me

these events fire as textchange,load because more variables not display with actual values on load

and i have more function not return actual values on load

so that what i do to display event changes or override it .


What I have tried:

I tried by using break point debug but i not get any result
Posted
Updated 11-Sep-18 3:56am

1 solution

The Microsoft Documentation has an article specifically on the order of events - Order of Events in Windows Forms | Microsoft Docs[^]

EDIT after OP comment

One way to track the order of events in controls or objects is to log them - you will need to use the IDE to generate the code stub for every possible event that is exposed and insert some code to write to a log the name of the event. There is an example here - events lifecycle[^]
 
Share this answer
 
v2
Comments
ahmed_sa 11-Sep-18 10:22am    
this is not windows form events if windows forms event i can get but these custom
events like another load,anotherload with values like that i cannot guess what this do it
ahmed_sa 11-Sep-18 10:25am    
if windows form event why i ask about that i need way or debug tool can by that know what order of events execution
CHill60 11-Sep-18 11:26am    
I've updated my solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900