VB .NET help.

GoHAnSoN

Senior member
Mar 21, 2001
732
0
0
Process.Start("IExplore.exe", "C:\")

I would like to launchthis within the MDI container. Is there a way i can do this ?
currently the explorer launches outside of the MDI......

 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Not a VB expert per se, but what you are trying to do isn't possible under Windows.... well it actually is, but not the way you are trying to do it.

When you start a new process, it gets its own memory space, message loop, and creates its own windows, etc.

If you post what you are trying to accomplish we may be able to help. If all you want is to open a browser window in your MDI container, then you can use the browser control that ships with Visual Studio. If it has to be a seperate process for some reason, then you are stuck with having it launch outside the MDI.
 

GoHAnSoN

Senior member
Mar 21, 2001
732
0
0
basically i want to launch a child form to view folder within the MDI. not outside of it.

Process.Start("IExplore.exe", "C:\") simply launch another new process outside of the MDI.

i've google around without any good info.....anyone got any ideas ?
 

GoHAnSoN

Senior member
Mar 21, 2001
732
0
0
actually i dont need web browser.
need to find a way to put the process inside the MDI. in this case, need to put the folder windows into it.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Rethink your requirements statement. You don't need a process inside the MDI, which is good because you can't have that. What you need is covered, I think, by the suggestions you've received.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
The only way you can create a window inside an MDI form is to create a child window object and attach it. It can't be a seperate process. It could be a COM DLL written in VB or another language, but really it sounds like you're way overcomplicating it. If you want to more fully explain what you're trying to get done, then maybe we can help. The browser control is the best solution if you want to create a child window in an MDI container and display web content.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I'm not a VB guy really, can you set a window as an MDI child if it was created by another process?

Anyway, it really doesn't sound like he needs to jump through all these hoops.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Originally posted by: Markbnj
I'm not a VB guy really, can you set a window as an MDI child if it was created by another process?

Anyway, it really doesn't sound like he needs to jump through all these hoops.

You can do anything, but be ready for a lot of work. You could make your own benevolent rootkit to remove the limitation.

There's probably a way with the API without going through hacking the kernel like that though.

Yes, set the MDI flag on the window.
SetMessageLong(hIEWin, GWL_STYLE, WS_CHILD);

Easiest way is to SetParent the IE window to your form, enchild(?) it, then resize it to fit your window. Its message loop should not be moved as far as I know.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |