Multiple forms locking....

Posted on 2002-06-28
Last Modified: 2010-05-02
Lets say I have 4 forms (actually way more) but the main form is an MDI form... which opens up an explorer type form.. the explorer type form opens up a customers form..  from the customers form you open up the order form..  Is there a way to set the order form to lock the customers form so it will act like a modal form but just to the customers form?  While at the same time allowing the user to use the explorer form as normal.
Question by:ketapillar
  • 2
LVL 28

Expert Comment

ID: 7116336

frmCustomers.Enabled = False

Accepted Solution

glass_cookie earned 100 total points
ID: 7125771

How about doing this:

Description: Keep a form on top of another, but not on top of all forms (2K)

Oh yes, you'll also have to disable the form before the form that's to be shown on top.

That's it!

glass cookie : )

Author Comment

ID: 7147320
Sorry for taking so long been working on other stuff...

What i did was this

Private Sub Form_Load()
    Form2.Show , Me
    Me.Enabled = False
End Sub

Which was in glass_cookies response (with the exeption of the Me.Enabled statment) what helped me was the "Form2.Show , Me" statement.

I was already playing with the show and enabled property it just wasn't working how i wanted it to so glass_cookie gets the points...


Expert Comment

ID: 7147851
Thanks for the points : )

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now