Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Form on top, NOT TopMost


Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2004, 11:43 AM
Rashka's Avatar
Rashka Rashka is offline
Contributor
 
Join Date: May 2004
Location: Ohio, USA
Posts: 771
Default Form on top, NOT TopMost


If I have two forms (Form1 and Form2), if Form1 is open, I click Command1 and it opens Form2. How do I make it so the user cant use Form1 again untill Form2 is closed?
__________________
Brandon

Once you embrace the idea that your customers deserve to die...
...it frees your mind to invent splendidly profitable products - Dogbert
Reply With Quote
  #2  
Old 05-26-2004, 11:45 AM
loquin's Avatar
loquin loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,378
Default

Quote:
Originally Posted by Rashka
If I have two forms (Form1 and Form2), if Form1 is open, I click Command1 and it opens Form2. How do I make it so the user cant use Form1 again untill Form2 is closed?
Open the second from modally.

Code:
form2.Show vbModal
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form oddity - How do I make a user form inactive but visible Francois Excel 9 09-27-2004 02:52 PM
MDI-Child Form Hides behind Main MDI Form when another MDI Child form is opened RKD General 2 09-15-2003 08:02 AM
Make a form the topmost active window? VBerLite General 10 06-23-2003 11:55 AM
I need a static reference to a form blindwig Interface and Graphics 3 06-18-2003 06:13 PM
Load Form with Never ending loop mjs7231 General 9 01-20-2003 02:19 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->