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
Rejinderi Kun
NA
3
0
need help on showing and hiding process
Aug 21 2006 10:06 PM
ok.. about hiding and showing window.. using simple coding it is able to hide simple windows like notepads.. firefox.. eg.. but i wanna hide a game window called Conquer.. it always crashes CODE private const int hiding = 0; private const int restoring = 9; private int numbers; [DllImport("User32")] private static extern int ShowWindow(int hwnd, int nCmdShow); private void hide_Click(object sender, EventArgs e) { Process[] p = Process.GetProcessesByName("Conquer"); numbers = (int)p[0].MainWindowHandle; ShowWindow(numbers, hiding); } private void restore_Click(object sender, EventArgs e) { Process[] p = Process.GetProcessesByName("Conquer"); numbers = (int)p[0].MainWindowHandle; ShowWindow(numbers, restoring); } anyone know why? i took a vid of it.. can view it here.. http://www.youtube.com/watch?v=EAcT_oOoQ1Y when it finsh loading the load game thing showed for a 2nd time when i press hide.. its not suppose to be that way most prob is a direct x error..
Reply
Answers (
1
)
Printing a report in a shared printer
Custom paging of format <
>