How run code without an event in VB?


I have some code I need to run in VB.  The code does not require an event - is there a way for me to run it without having to create an event (e.g. a button called "Run the darn code")?
I just want to debug the code without having to create any controls on a form...
Who is Participating?
or in a form load event ...
You can put the code in a module under Sub Main() and then right click on the project in the project explorer window and select properties. Then set the Startup object to Sub Main()

SAbboushiAuthor Commented:
Thanks for the help folks-
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.