How run code without an event in VB?


Hi-

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...
SAbboushiAsked:
Who is Participating?
 
g_johnsonCommented:
or in a form load event ...
0
 
vinnyd79Commented:
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()

0
 
SAbboushiAuthor Commented:
Thanks for the help folks-
0
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.