by Faisal Nawaz (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
This is a very simple and precise solution to keep a form on top of only one other form. I was looking for a solution, but couldn't find it anywhere. All the codes and suggestions either keep the form on top of All windows programs or on top of the whole application. But this one will only keep one form on top of another one.
' Let say you have two forms in your project, i.e. form1.frm and form2.frm. Now you want to open form2.frm from form1, but want your form2 to stay on top of form1 and also want to access the menu of form1 without causing the form2 to go behind. Here is the simple solution...
=========================================
Private Sub Command1_Click()
Form2.Show vbModeless, Form1
End Sub
=========================================
I hope it will help you in your projects...
No comments have been posted about To Keep a form on top of another (Only on top of one form, not of the whole application). Why not be the first to post a comment about To Keep a form on top of another (Only on top of one form, not of the whole application).