Lock a form if another opens/are in focus

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!
Who is Participating?
iboutchkineConnect With a Mentor Commented:
instead of form.open use form.openDialog
Mike TomlinsonMiddle School Assistant TeacherCommented:
iboutchkine is right but instead of open and opendialog it is Show() and ShowDialog():

    Dim config As New frmConfig


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.