Re: MDIMain and Form Containting user control



Just out of curiosity, VB.net question on a newsgroup dedicated to MS Access!

NxDevel wrote:
Hello,

I am having a problem with a MDI VB.net application.
The problem is if I have two forms loaded, lets call them Form A and Form B.
Form A is loaded first then Form B. Form B is a blank form that houses a
user control. From the user control When the user clicks on a find button it
launches a Search screen well call this Form C . When I select the correct
Item on Form C it fires off an event to tell the listening form who was
searched for and then closes. Form B captures the event and populates some
fields. This works great! The problem is that Form B gets hidden behind
Form A. Why did Form A come to the forefront when Form B was the form that
called Form C. And When Form C closes I expected Form B to be on top.

It used to work this way when Form B was just a form and not a form housing
a user control. Is there a setting that I have missed. I've tried setting
the parent of the user control to Form B. But that did not work.

Thank you!


--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200807/1

.



Relevant Pages

  • Re: currentFocus
    ... if i have a user control with a number of text ... "CMM" wrote: ... >>> in an MDI app, how do i determine which MDI child contol currently has ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Webbrowser control + MDI + Disabling Keys
    ... I am using the Webbrowser control in a MDI application. ... control is in a User Control which is loaded into a form. ... I have also disabled ctrl-n by ...
    (microsoft.public.dotnet.framework.interop)
  • Webbrowser control + MDI + Disable ctrl-n
    ... I am using the Webbrowser control in a MDI application. ... control is in a User Control which is loaded into a form. ... I have also disabled ctrl-n by ...
    (microsoft.public.dotnet.framework.windowsforms)
  • webbrowser control + MDI + disabling ctrl-n
    ... I am using the Webbrowser control in a MDI application. ... control is in a User Control which is loaded into a form. ... I have also disabled ctrl-n by ...
    (microsoft.public.dotnet.framework.windowsforms.controls)