My codes still executes without the function InitializeComponent()
and if I call the function in the private sub AddGA_Shown
all my other functions wont print, run and work. I dont understand why this is happening, because on all my other Forms when I don't call InitializeComponent()
then the components in that form will not show.
Private Sub AddGA_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
showTabGeneralNOAD()
End Sub
Private Sub showTabGeneralNOAD()
GAMailAddressTxt.Text = "none"
GAPasswordLastChangeTxt.Text = "none"
GAAccountStatusBox.Text = "active"
GADiscriptionTxt.Text = "Not an AD Account"
End Sub
Private Sub cancelBtn_Click(sender As Object, e As EventArgs) Handles cancelBtn.Click
Me.Close()
End Sub
This is how the form looks like with the InitializeComponent