disable close button

Disable/Enable Close Button in Windows Form using VB.NET

Submitted by donbermoy on
This tutorial will teach you how to create program that can disable and enable a close button in the windows form using vb.net language. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2. Next, add a GroupBox and two buttons for Disable and Enable Close button named Button1 and Button2 respectively.