Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Newbie VB.Net question

I'm Googling and looking through the MSDN-ish help that came with Visual Studios, but so far I'm hitting deadends.  Is there a VB.Net equivalent to the "Form_onLoad" event in VB6?  Thanks.

Andrew Burton
Monday, November 10, 2003

In VB.NET, its the Load event of the Form Class. Its declared via a delegate as ...

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Monday, November 10, 2003


Andrew Burton
Monday, November 10, 2003

I ran into a similar problem when I couldn't find the Load event for a form ... finally found it under "base class" events ... they hid it on us!

Dana Hoffman
Thursday, November 13, 2003

*  Recent Topics

*  Fog Creek Home