Tools Links Login

a 1 line code to keep a form on top within your ap

The purpose of this extremely small code is to take a form within your application and keep it on top of all the forms within your application. (Modal Forms) Note however that when you use this code, it will make all other forms in your application inaccessible until that form is closed. This is great for times when you have a form like starting a new game, or a form that tells about your program that you want to stay on top and "stop" your program until it is closed.

Original Author: Casey

Assumptions

2 forms, 1 command button or menu link

Code

form2.show 1 'place this in the button or link

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 102 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.