Hack Forums
[.NET] Can't Find Form Load Event - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Can't Find Form Load Event (/showthread.php?tid=5644603)



Can't Find Form Load Event - AvengeDev - Jun 11, 2017

Little help? Don't really know why I am getting this error.

"Event 'Load' cannot be found"
Code
Public Class Form1
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim Test As New Form1
        Test.Test2()
    End Sub
End Class



* - NiÇŒa - Jun 11, 2017

Check in your designer in the properties window in the bottom right if the event is subscribed to. Also check your designer file.


* - +Haze - Jun 12, 2017

God dammit the VB.NET syntax is aids.

Hover over "Load" and tell me if it gives you an option to import anything?


* - Barret - Jun 12, 2017

(Jun 12, 2017 06:41 AM)+Haze Wrote:  God dammit the VB.NET syntax is aids.

Hover over "Load" and tell me if it gives you an option to import anything?

Don't be ignorant haze 😕


* - +Haze - Jun 12, 2017

(Jun 12, 2017 08:20 AM)Barret Wrote:  Don't be ignorant haze 😕

Oh I'm pretty well educated on the topic, I'm just giving my opinions.


* - Owl - Jun 12, 2017

The method is subscribed by base (mybase.load) so have you messed with the actual designer file and removed the Form inheritance statement? Is this class independent of the actual Form1?


* - AvengeDev - Jun 12, 2017

(Jun 12, 2017 11:31 AM)Orka Wrote:  The method is subscribed by base (mybase.load) so have you messed with the actual designer file and removed the Form inheritance statement? Is this class independent of the actual Form1?
Recreated the form1 and made sure your last statement was followed correctly.
Seemed to fix the issue, thanks!