messages in c#

I have a winform form window open and want to set focus to it if it is not visible. Can I ]post a user message to its message pump?
Who is Participating?
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Is another window in YOUR application currently focused?  If yes, then you can simply use BringToFront():


If another application is currently focused then you may or may not need to resort to APIs as in the previous post.  It really depends on the Windows version and whether they have it set to prevent other applications from stealing focus.

check if the  solution of this question could help you to bring it forth:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.