Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Run a code when form is activated

$
0
0

Hi,

I want to run a code when the form is activaed. I added MessageBox.Show("HELLO") in the activated event and then opened the form, then I opened some Form as dialog but when I close I was expecting to get the Message HELLO but I didn't get it.

So what's the best way to run a code when the fom is activated or brought to front?

Thanks

Jassim


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>