PC Review


Reply
Thread Tools Rate Thread

.BringtoFront doesn't

 
 
Eric Goforth
Guest
Posts: n/a
 
      11th Oct 2003
Hello,

I have an MDI VB.NET app that is called from a VB6 app,
and it basically lives on top of the VB App. When the
user clicks on controls on the VB6 app I do an

MDIParentForm.WindowState = FormWindowState.Minimized

After the user has clicked on a particular menu item then
I want to bring my VB.NET MDI app back on top. I've tried
doing a:

MDIParentForm.WindowState = FormWindowState.Maximized

and I've tried doing a:

MDIParentForm.BringtoFront
MDIParentForm.WindowState = FormWindowState.Maximized

But my MDI application still stays put and I have to click
on the icon in the system task bar to bring it back up.

I don't want to make this modal or anything. I just want
to pop it on top of the VB6 app. Any idea how to do
this? I guess that maybe I could use some API calls to do
sort of the equivalent to an Alt+Tab, but that seems
cumbersome.

-Eric

--
Eric Goforth
Raleigh, North Carolina
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      12th Oct 2003
* (E-Mail Removed) (Eric Goforth) scripsit:
> I have an MDI VB.NET app that is called from a VB6 app,
> and it basically lives on top of the VB App. When the
> user clicks on controls on the VB6 app I do an
>
> MDIParentForm.WindowState = FormWindowState.Minimized
>
> After the user has clicked on a particular menu item then
> I want to bring my VB.NET MDI app back on top. I've tried
> doing a:


You will have to use 'AppActivate' or pinvoke on 'AttachThreadInput':

<http://www.mvps.org/vb/samples.htm>
-> "ForceFore.zip"

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
E Goforth
Guest
Posts: n/a
 
      12th Oct 2003
Hello,

I couldn't get the samples link to work.

I know about 'AppActivate.' How does the pinvoke on 'AttachThreadInput'
work? It would be VERY preferable to do this on the VB.NET side of
things. I do have access to the VB6 calling application, but it is very
limited.

-Eric

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BringToFront() doesn't work jabailo@texeme.com Microsoft Dot NET Framework Forms 2 7th Jul 2005 11:25 PM
BringToFront() doesn't work jabailo@texeme.com Microsoft Dot NET 2 7th Jul 2005 11:25 PM
re:Panel.BringToFront() talljames Microsoft C# .NET 0 31st Aug 2004 09:02 PM
Panel.BringToFront() talljames Microsoft C# .NET 0 31st Aug 2004 09:02 PM
re:Panel.BringToFront() talljames Microsoft C# .NET 0 31st Aug 2004 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 PM.