How To Make Form Always On TOP In C# & VB.NET

Using Always On TOP , the form will be always on top even if you click outside it. In this post , we will learn how to make form always on top in C# & VB.NET


Always On TOP Form In C#

To make form always on top in C Sharp , we need to add following code in form load event
private void Form1_Load(object sender, EventArgs e)
        {
            this.TopMost = true;
        }
In this way , you can set form always on top in c#


Always On TOP Form In VB.NET

To make always on top in VB.NET , we need to add following code in form load event
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.TopMost = True
    End Sub
In this way , you can set form always on top in VB.NET