Click here to Skip to main content
15,926,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: HOW TO SEARCH WORD/SENTENCE ON MULTIPLE HTML PAGES Pin
Christian Graus23-Nov-06 22:02
protectorChristian Graus23-Nov-06 22:02 
GeneralRe: HOW TO SEARCH WORD/SENTENCE ON MULTIPLE HTML PAGES Pin
Paul Conrad24-Nov-06 5:24
professionalPaul Conrad24-Nov-06 5:24 
Questionremote execution Pin
ingsgr01@gmail.com23-Nov-06 20:42
ingsgr01@gmail.com23-Nov-06 20:42 
AnswerRe: remote execution Pin
Paul Conrad24-Nov-06 15:34
professionalPaul Conrad24-Nov-06 15:34 
Questionhow to make crystal reports to show only one row Pin
Rmesh23-Nov-06 19:12
Rmesh23-Nov-06 19:12 
Questionhow can we display a back color of a form without using the tools in the toolbox Pin
tirumal123123-Nov-06 18:19
tirumal123123-Nov-06 18:19 
AnswerRe: how can we display a back color of a form without using the tools in the toolbox Pin
Guffa23-Nov-06 18:34
Guffa23-Nov-06 18:34 
QuestionIsIn function in VB.Net? Pin
StyleUK23-Nov-06 11:35
StyleUK23-Nov-06 11:35 
Okay so basically I've just started trying to learn VB. I'm trying to make a simple validation form that checks a file for a list of words. The words are usernames and passwords all jumbed up and in no particular order. I'm just starting so I don't want to get into CSV's just yet. So it's all very insecure etc.

As you can see I would like the form to check read.txt to see if the correct combination of words are there, and if they are continue on.

Please read the comments in the code and you'll quickly see whats wrong I guess Frown | :(

Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click<br />
        Dim User, Pass As String<br />
        Dim validationFile As String<br />
        User = txtbx1.Text<br />
        Pass = txtbx2.Text<br />
        validationFile = My.Computer.FileSystem.ReadAllText("C:\read.txt")<br />
        If txtbx2.Text.Length < 5 And Not txtbx2.Text Like "#####" Then<br />
            MsgBox("Please enter a password with more then 5 charactors")<br />
            txtbx2.Text = ("")<br />
        ElseIf Pass <> validationFile Then<br />
            'It's above here that I have the problem, <> means equal too if I'm            'right in VB.Net but I'd like it to be something along the lines of IsIn or ==. 'I just want it to check to make sure the words are in the file you see.<br />
            MsgBox("Access Granted")<br />
            Me.Close() 'Just an example of what it should do.<br />
        End If<br />
    End Sub<br />
End Class


Sorry about the bad coding, but I just need help with that one thing.

Hope you can help!

Kind Regards,
StyleUK.
AnswerRe: IsIn function in VB.Net? Pin
Christian Graus23-Nov-06 15:43
protectorChristian Graus23-Nov-06 15:43 
AnswerRe: IsIn function in VB.Net? Pin
Dave Sexton23-Nov-06 19:17
Dave Sexton23-Nov-06 19:17 
QuestionDrawing Simple Pie Chart Pin
s20tt23-Nov-06 11:18
s20tt23-Nov-06 11:18 
AnswerRe: Drawing Simple Pie Chart Pin
s20tt23-Nov-06 11:20
s20tt23-Nov-06 11:20 
AnswerRe: Drawing Simple Pie Chart Pin
Dave Sexton23-Nov-06 19:21
Dave Sexton23-Nov-06 19:21 
Questionordering system Pin
franciscusBE23-Nov-06 11:05
franciscusBE23-Nov-06 11:05 
AnswerRe: ordering system Pin
MatrixCoder23-Nov-06 16:13
MatrixCoder23-Nov-06 16:13 
GeneralRe: ordering system Pin
franciscusBE24-Nov-06 22:19
franciscusBE24-Nov-06 22:19 
GeneralRe: ordering system Pin
MatrixCoder25-Nov-06 14:36
MatrixCoder25-Nov-06 14:36 
GeneralRe: ordering system Pin
franciscusBE25-Nov-06 22:56
franciscusBE25-Nov-06 22:56 
GeneralRe: ordering system Pin
MatrixCoder26-Nov-06 7:45
MatrixCoder26-Nov-06 7:45 
QuestionListBox with Icons Pin
CodingYoshi23-Nov-06 10:51
CodingYoshi23-Nov-06 10:51 
AnswerRe: ListBox with Icons Pin
MatrixCoder23-Nov-06 12:48
MatrixCoder23-Nov-06 12:48 
GeneralRe: ListBox with Icons Pin
CodingYoshi28-Nov-06 3:51
CodingYoshi28-Nov-06 3:51 
GeneralRe: ListBox with Icons Pin
MatrixCoder28-Nov-06 9:56
MatrixCoder28-Nov-06 9:56 
QuestionGive Picture a defined Shadow.. Pin
martinx23-Nov-06 9:50
martinx23-Nov-06 9:50 
AnswerRe: Give Picture a defined Shadow.. Pin
Dave Sexton23-Nov-06 19:23
Dave Sexton23-Nov-06 19:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.