I'm using the showdialog() function, and have put some code in the load event of the form.. guess what ? the load event doesn't run when I'm opening the form with showdialog().

My code:
Dim varFrmSetup As New frmSetup()
varFrmSetup.ShowDialog()


On the load event of the form:
msgbox("test")


The load event ONLY runs when I use the show function of the form instead of showdialog().

Anybody ?