troubleshooting Question

Activate Code when form is active

Avatar of Shezad Ahmed
Shezad AhmedFlag for United Kingdom of Great Britain and Northern Ireland asked on
Visual Basic.NET
2 Comments1 Solution266 ViewsLast Modified:
Hi Guys

I would like to activate code when a user activates a form.

If a user switches from my form to another application then switches back. I would like to process some code.

I placed the code in the Form activate .

Which works fine. The problem is I have a save button on Form which prompts a message box.
As soon as the user clicks OK my actiavtion code is processed. Which I do not want.

Any ideas highly appreciated.
Mike Tomlinson
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros