Solved

Lock a form if another opens/are in focus

Posted on 2004-09-25
2
210 Views
Last Modified: 2010-04-23
Well, when I open a configuration form I want the main program/main form to lock so you have to close the configuration form before you can play around with the program/main form again, otherwise the configurations form just flash a bit (maybe).

I've exprimented with the built in functions and proporties but haven't found a solution.

Help would be greatly appriceted!
0
Comment
Question by:stromberg10
2 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 125 total points
ID: 12151783
instead of form.open use form.openDialog
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12151803
iboutchkine is right but instead of open and opendialog it is Show() and ShowDialog():

    Dim config As New frmConfig
    config.ShowDialog()

Regards,

Idle_Mind
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 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