Dim form As New Mainuser(TextBox1.Text)
For some reason, even though TextBox1
exists, it still says it's not declared.
Also, in my other part of the code, Mainuser.Show()
, it says can not be simplified. Here is my full code if you want to help me with that:
Login.vb:
Dim form As New Mainuser(TextBox1.Text)
If TextBox8.Text = My.Settings.username AndAlso TextBox9.Text = My.Settings.password Then
MessageBox.Show("You have successfully been logged in!", "Login Successfull")
Close()
Mainuser.Show()
Mainuser.vb:
Public Class Mainuser
Public Sub New(ByVal value As String)
InitializeComponent()
Label1.Text = value
End Sub
Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles PictureBox2.Click
HTML_Editor.Show()
End Sub
End Class
Like I said before if this doesn't make any sense I'll comment below what you want.
Oh yeah, here are my error messages:
(BC30451)
TextBox1
is not declared. It may be inaccessible due to its protection level.(BC30469) Reference to a non-shared member requires an object reference.