Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2003, 02:36 PM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tonyh
Default Form problem

I am having trouble with multiple forms in my applications, i dont mean mdi. i can create new forms fine, but i want is to stop a user focusing on the main form untill they close the other form, i have tried everything i can with this but i just cant get it right, any answers?

 
Old October 28th, 2003, 02:43 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried opening the form modally (i.e. form.show 1)?

Yehuda
 
Old October 28th, 2003, 02:49 PM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tonyh
Default

i dont know what you mean, i only started reading on vb 2 days ago, and my book isnt very in-depth.
i have tried methods like setting the seconds forms visible property to true when a user presses a command button, then disabling the main form window, when its closed again, re enabling it, but it doesnt reenable

 
Old October 28th, 2003, 03:08 PM
Registered User
 
Join Date: Oct 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tonyh
Default

I tried that modal thing you said, it worked! Thanks! But does anyone have details on using it, like where and when?

 
Old October 28th, 2003, 03:11 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah OK. You can set a form as modal. This means that nothing will continue until that form is unloaded. To do this use the following code (assume form1 is the name of my form).

Load form1 'loads the form
form1.show 1 'shows the form modally
unload form1 'unloads the form

Yehuda





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Problem prasanta2expert C# 1 September 24th, 2007 08:57 PM
Upload.Form problem barkerl Classic ASP Basics 1 January 22nd, 2007 06:06 AM
Sum on a form Problem Corey Access 1 November 9th, 2005 05:43 PM
form problem nulogix PHP How-To 4 June 16th, 2004 12:08 PM
Form problem HammR Beginning PHP 4 March 17th, 2004 09:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.