VB.NET Multiple Strings In a Textbox?

Posts 16–19 of 19 · Page 2 of 2
Are you saying that snippet i posted does'nt work?
Quote Originally Posted by HiddenoO View Post
wth..it doesn't work for me.
you noob it does work, learn your basics first xD lol
go to settings and add those strings dur dur /
Quote Originally Posted by HiddenoO View Post
I know i'm using End If correctly..
I think I might have cut the code off where I started using it, but I think the problem might be because I have to many things for the textbox to accept.
There can never be too many things for the textbox to accept (okay.. technically there is a limit).

Code:
If (TextBox1.Text = "username" And TextBox2.Text = "password") Or (TextBox1.Text = "password" And TextBox2.Text = "username") Then
            MsgBox("Successful Login")
            If CheckBox1.Checked = True Then
                'Save Settings
            End If
        Else
            MsgBox("Invalid Information")
        End If
The code above works 100%.
Quote Originally Posted by NOOB View Post


There can never be too many things for the textbox to accept (okay.. technically there is a limit).

Code:
If (TextBox1.Text = "username" And TextBox2.Text = "password") Or (TextBox1.Text = "password" And TextBox2.Text = "username") Then
            MsgBox("Successful Login")
            If CheckBox1.Checked = True Then
                'Save Settings
            End If
        Else
            MsgBox("Invalid Information")
        End If
The code above works 100%.
I did try that, and it works, but when I add more:
[php]
(TextBox1.text = "whoever" And TextBox2.Text = "This") Or (TextBox1.Text = "concerns" And Textbox2.Text = "Yes you..")
//And so on..
[/php]
It doesn't work when I add more..
Also, the strings are accepted in the settings i'm 100% sure, because that was the first thing I did..So it's not that..And don't tell me to learn the basics, because I know the basics..I learned the basics many years ago.
And I use about 29 things for the textbox to accept..Does that overpass the limit?
/
Posts 16–19 of 19 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us