Solved

Lock a form if another opens/are in focus

Posted on 2004-09-25
2
209 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with sorting data in Listbox using VB.NET 3 62
DataGridView Events ? 3 45
Need a starter for ETL protocol? 4 57
Calculate number of nights between two dates 5 25
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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