If I would like to execute some code on a form's creation or on create event I have read I need to use the Sub Main() procedure.
I have build a demo app and in Sub Main() I did the typical "Hello Word" messagebox but it do not display when running the application.
What am I doing wrong?
Please see code:
Public Class frmMain
Shared Sub Main()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGenerateLabels.Click
Dim frmGenerate As New frmGenerateLabels