Search code examples
vb.netwindow

Visual Basic close a form when windows default border has been removed


I am using Visual Basic in Visual Studio 2019. I have made a word processor and that is working fine, but now I am trying to get rid of the windows default border and make my own close button.

I have been using this in the past when my windows default border was still there:

 Me.Close

The error that keeps coming up is:

Property access must assign to the property or use its value.

Thank you.


Solution

  • You should use End. It closes every windows and stops the application.