|
-
Feb 4th, 2008, 12:51 AM
#1
Thread Starter
New Member
[2008] Coding Help
Okay, I have a problem, I'm trying to make a log in system using just windows forms, easy, now, I'm trying to add a create function, and I have a problem (By the way, I'm not using ANY other programs) This is the code I have on form 2 (Log in form):
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click <<NEWLINE>>
If ComboBox1.Text = "Jexah" And TextBox1.Text = "password" Then<<NEWLINE>>
MsgBox("Login successful!", MsgBoxStyle.OkOnly, Title:="Welcome!")<<NEWLINE>>
Me.Hide()<<NEWLINE>>
Form1.Show()<<NEWLINE>>
<<NEWLINE>>
End If<<NEWLINE>>
End Sub<<NEWLINE>>
Now, My problem is I want to use code from form 3 to ADD code to form 2 (Above) how do I do that?
How do I use code to add code?
Form 3 (Create form):
If textbox3.text = "12345" then
((textbox3 is just a confirmation code.) I don't know what to put here, but I want the textbox1.text and textbox2.text (Username and password on the create form) to end up in here:
If ComboBox1.Text = "Jexah" And TextBox1.Text = "password" then
Like this:
If ComboBox1.Text = "Jexah" And TextBox1.Text = "password" or combobox1.text = "Random" and textbox1.text = "password" then
Help please! And if you don't understand, please say the word, and I can help you understand, PLEASE HELP!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|