Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is ApplicationEvents.vb file from

Tags:

vb.net

Just noticed a file named ApplicationEvents.vb in my vb.net project in the solution explorer, its empty...

Where would this have come from? is it safe to delete?

like image 334
Toby Avatar asked Sep 02 '25 09:09

Toby


1 Answers

It is a file that can house common Application events like Startup and Shutdown. This is a partial class, so it would get compiled in when building the solution.

If it is empty, then it is safe to delete, but if you ever want to handle these events, then this is where you can easily hook into these events.

Read How to: Handle Application Events (Visual Basic) for more information.

like image 53
Karl Anderson Avatar answered Sep 05 '25 01:09

Karl Anderson