473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

.BringtoFront doesn't

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
Nov 20 '05 #1
2 4489
* eg******@bellsouth.net (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>
Nov 20 '05 #2
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!
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: C# Learner | last post by:
BringToFront() has the desired effect in my app if the notify icon's (system tray icon's) context menu is used. However, I can't BringToFront() in response to a Click event handler. Here's the...
2
by: jabailo | last post by:
I launched a form set to an object called Search, from a main form, like this: Search.Show(); Search.Activate(); Search.BringToFront(); But the form stays behind the main form.
0
by: Kathy D | last post by:
I would like to know if there is something like a BringToFront for the minimize button. I have four four child forms on a parent form and when I minimize them the "box" goes behind another...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
1
by: C# Learner | last post by:
BringToFront() has the desired effect in my app if the notify icon's (system tray icon's) context menu is used. However, I can't BringToFront() in response to a the notify icon's Click event...
0
by: talljames | last post by:
Getting an unusual problem. I have two layered panels at the same location. panel4 on top and panel5 underneith in a windows form. It starts off with panel4 on top. When I do a...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
38
by: tshad | last post by:
In VS 2008, why doesn't ToString require "()". If I have Option Strict On on why can I do both: selectedIndex.ToString() selectedIndex.ToString or sQuery =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.