c# form on focus
-
Hi, I got 2 forms.. Form1 and Form2. When the program is executed, Form1 is called. There is a button that will open Form2. At this point of time, Form2 will be on top of Form1. After the user closes Form2, i want form1 to show something.. But i cant find the OnFocus event.. any idea?
-
Hi, I got 2 forms.. Form1 and Form2. When the program is executed, Form1 is called. There is a button that will open Form2. At this point of time, Form2 will be on top of Form1. After the user closes Form2, i want form1 to show something.. But i cant find the OnFocus event.. any idea?
Documentation[^] shows a GotFocus event, which is probably what you want.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
somehow, my form dont have the GotFocus event
I don't see how that's possible.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Documentation[^] shows a GotFocus event, which is probably what you want.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
somehow, my form dont have the GotFocus event
-
I don't see how that's possible.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
somehow, my form dont have the GotFocus event
in WinForm every Control has a GotFocus event. so please clarify and justify your observation. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
in WinForm every Control has a GotFocus event. so please clarify and justify your observation. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
i have look thru many times.. Do not have the GotFocus event.. Well, i think i create a static method in Form1 and before Form2 closes, it will fire Form1 method instead of using the GotFocus
-
i have look thru many times.. Do not have the GotFocus event.. Well, i think i create a static method in Form1 and before Form2 closes, it will fire Form1 method instead of using the GotFocus
benjamin yap wrote:
i have look thru many times
through what? If you can't give clear and detailed information, people won't be able to offer effective help. :|
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
i have look thru many times.. Do not have the GotFocus event.. Well, i think i create a static method in Form1 and before Form2 closes, it will fire Form1 method instead of using the GotFocus
You have one, every form that inherits from system.windows.forms.form has one.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]