Advertisement

03.29.2008 at 07:36AM PDT, ID: 23279434
[x]
Attachment Details

MainWindowHandle is not set in my App

Asked by gspace74 in Visual Studio .NET 2005, Microsoft Visual C#.Net

Tags: Microsoft, Visual Studio Professional, .NET 2005, C#

I am developing a number of applications with Vis Studio 2005 (intended to run on the same box).  One of the applications is a Menu GUI that manages other applications.  It provides an easy one-touch way to launch applications that have been configured.  In addition, I have a "task-bar" like pull-down that brings a process' window to the foreground when selected.  Everything works great for third party apps.  

Now for my problem - I have single window application that I developed to display an analog video input from a capture card.  I would like to treat this app as I would any other app.  When I launch this app, I grab a handle to the process (same as I do all other processes).  The issue is that the MainWindowHandle of the process is always zero - even well after I see the video being displayed in the application that was launched (note, I don't access the handle until the pull-down click, meaning the handle isn't saved - I fetch it every time from the process).  

Do I have to manually set the MainWindowHandle for the process?  I cannot see how this can be accomplished in my VS C# application.

Thanks,
Mike
Start Free Trial
[+][-]03.29.2008 at 09:13AM PDT, ID: 21237089

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 04:06PM PDT, ID: 21238516

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 07:01PM PDT, ID: 21239188

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 07:11PM PDT, ID: 21239239

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 08:31PM PDT, ID: 21239488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2008 at 06:08AM PDT, ID: 21240607

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.30.2008 at 06:41AM PDT, ID: 21240720

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2008 at 07:09AM PDT, ID: 21240782

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 09:20AM PDT, ID: 21274180

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, Microsoft Visual C#.Net
Tags: Microsoft, Visual Studio Professional, .NET 2005, C#
Sign Up Now!
Solution Provided By: gspace74
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.03.2008 at 10:14AM PDT, ID: 21274700

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 04:03PM PDT, ID: 21320017

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628