Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / July 2004

Tip: Looking for answers? Try searching our database.

vb.net mdi parent - child forms problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jinu - 30 Jul 2004 12:49 GMT
Hello,

My application loads with a form which is the mdi parent and a menu item click  (main menu of the parent form) brings up a child form.
I have to wait for a considerable amout of time to execute an oracle procedure which has to be invoked from the above said child form.
The problem now is, during this waiting time, my mdi parent's menu is appearing to be not responding (becoming white in simple words). Once the oracle procedure is done (that process is over), the menu is active and ready again. Why and how to solve this.
Any help would be appreciated.

Thanks in advance !!
Jonathan Holmes - 30 Jul 2004 13:55 GMT
Code run from MDI child forms still executes in the context of the MDI
parent form (there is generally one user interface thread in the application
and no other threads should alter the user interface without synchronizing
with this thread) which is why the parent also hangs when the child is busy.

You need to create a new thread from within your MDI child form and call
your Oracle procedure from that, or otherwise invoke the Oracle procedure
asynchronously if your database connection mechanism allows this to be done
directly; please post back here if you need further help with setting up a
thread to call the method.

Jonathan Holmes

> Hello,
>
> My application loads with a form which is the mdi parent and a menu item click  (main menu of the parent form) brings up a child form.
> I have to wait for a considerable amout of time to execute an oracle procedure which has to be invoked from the above said child form.
> The problem now is, during this waiting time, my mdi parent's menu is appearing to be not responding (becoming white in simple words). Once the
oracle procedure is done (that process is over), the menu is active and
ready again. Why and how to solve this.
> Any help would be appreciated.
>
> Thanks in advance !!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.