TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
peter lu
NA
1
2.8k
Trying to write a fullscreen application launcher, Can't get window to restore after quitting launched application
Sep 3 2010 8:03 PM
Hi, I'm trying to write a kiosk type software that launches applications under windows 7.
Everything is working great except that the launcher software should (ideally) be run fullscreen. Whenever it launches another application it minimizes and when that program quits the launcher application does not restore. I'm not using the system forms so I can't use the restore option in the form class. I did a bunch of searches on google and they all told me to dllimport user32.dll and use functions like SetFocus, ShowWindow, and AnimateWindow and apply it to GetCurrentProcess().MainWindowHandle. After debugging a bit I'm certain that GetCurrentProcess() is working (because I do the kill() function and it works as expected) but MainWindowHandle is always 0. I also started a few different processes using Process.Start() and all those also had MainWindowHandle as 0. I'm out of ideas now.
Any help would be much appreciated.
Reply
Answers (
1
)
How to set and map a Method in the Service file with endpoint elements and binding elements
Chat-like TCP communication problem