Thread: [Help]Textbox

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    ³²³'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    sef
    Posts
    302
    Reputation
    9
    Thanks
    19
    My Mood
    Angelic
    Instead of "Button1" it should be Button1.text /me

  2. #17
    pushdis15's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    spokane washington
    Posts
    923
    Reputation
    20
    Thanks
    170
    My Mood
    Twisted
    Quote Originally Posted by ³²³ View Post
    Instead of "Button1" it should be Button1.text /me
    y should it be button1.text? when button1 is click to gen the numbers it appears in textbox1
    Last edited by pushdis15; 04-13-2011 at 07:07 PM.
    PlayStation ID:
    Boxing509

    Quote Originally Posted by pushdis15
    Women now have choices. They can be married, not married, have a job, not have a job, be married with children, unmarried with children. Men have the same choice we've always had: work, or prison.

  3. #18
    willrulz188's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Ohio?
    Posts
    1,786
    Reputation
    35
    Thanks
    231
    My Mood
    Amazed
    Your code is saying

    textbox 1 2 and 3 must equal "button1"....

    The text "button1" not what it generates
    Last edited by willrulz188; 04-13-2011 at 07:10 PM.
    Question ALL statements! ?
    You're in denial that you're in denial. ?
    [img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]

  4. #19
    pushdis15's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    spokane washington
    Posts
    923
    Reputation
    20
    Thanks
    170
    My Mood
    Twisted
    Quote Originally Posted by willrulz188 View Post
    Your code is saying

    textbox 1 2 and 3 must equal "button1"....

    The text "button1" not what it generates
    button1 gens numbers those number appear in textbox 1 2 3
    PlayStation ID:
    Boxing509

    Quote Originally Posted by pushdis15
    Women now have choices. They can be married, not married, have a job, not have a job, be married with children, unmarried with children. Men have the same choice we've always had: work, or prison.

  5. #20
    willrulz188's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Ohio?
    Posts
    1,786
    Reputation
    35
    Thanks
    231
    My Mood
    Amazed
    Quote Originally Posted by pushdis15 View Post


    button1 gens numbers those number appear in textbox 1 2 3
    Yes, but the code you put is for the text of button1 not what it generates.
    I do not see how your not understanding this.

    This is the simplest way I can put it

    "If textbox has button1 (The word its self) then it would be correct"

    I cannot help you if you don't understand this...
    Question ALL statements! ?
    You're in denial that you're in denial. ?
    [img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]

  6. #21
    ³²³'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    sef
    Posts
    302
    Reputation
    9
    Thanks
    19
    My Mood
    Angelic
    things within quotes = String.
    Msgbox("Button1") will make a messagebox displaying "Button1". This value is STATIC.

    However if you do
    Msgbox(Button1.Text)
    It will display button1's label.

    If you do not understand, get out of the section and don't come back until you have at least tried to learn

  7. #22
    T0P-CENT's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    88
    Reputation
    14
    Thanks
    17
    My Mood
    Stressed
    Quote Originally Posted by pushdis15 View Post
    ok this not working i want it where if the code isnt in the textbox then it wont open the form i want it to an if it is right then form should show but it keeps saying invaild as i gotdont got the code in an its wrong help plz
    i didn't understand most of the thread but what i think u trying to do is by clicking button1 it genrates random number and when click button2 it checks if the random number is the same (the user didn't change the random number?)
    so i don't get the point of this but
    Code:
        Dim Random As New Random
        Dim Check(2) As String
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Check(0) = Random.Next(1000) : Check(1) = Random.Next(6000) : Check(2) = Random.Next(50)
            TextBox1.Text = Check(0) : TextBox2.Text = Check(1) : TextBox3.Text = Check(2)
        End Sub
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            If TextBox1.Text = Check(0) AndAlso TextBox2.Text = Check(1) AndAlso TextBox3.Text = Check(2) Then
                MsgBox("Login Succesfully")
                Form4.Show()
            Else
                MsgBox("Failed To Register")
            End If
        End Sub
    just change the code of msgbox to whatever and do what ever then
    Last edited by T0P-CENT; 04-13-2011 at 09:47 PM. Reason: changing vb tags

  8. #23
    pushdis15's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    spokane washington
    Posts
    923
    Reputation
    20
    Thanks
    170
    My Mood
    Twisted
    Quote Originally Posted by willrulz188 View Post
    Yes, but the code you put is for the text of button1 not what it generates.
    I do not see how your not understanding this.

    This is the simplest way I can put it

    "If textbox has button1 (The word its self) then it would be correct"

    I cannot help you if you don't understand this...
    dude u have no idea wdf u talkin bout every thing works if i remove
    Code:
    else
    msgbox("invalid code")
    the button1 when it is CLICKED 4 RANDOM NUMBERS APPEAR IN TEXTBOX 1 2 3

    u want me to send u the fkin code an i will remove the else msgbox invalid code . an show u it works ? dude gtfo

    Quote Originally Posted by TOP-CENT
    i didn't understand most of the thread but what i think u trying to do is by clicking button1 it genrates random number and when click button2 it checks if the random number is the same (the user didn't change the random number?)
    so i don't get the point of this but
    i got every thing to gen but i want it if theres no numbers in the 3 textboxs then i want it to say INVALID CODE
    PlayStation ID:
    Boxing509

    Quote Originally Posted by pushdis15
    Women now have choices. They can be married, not married, have a job, not have a job, be married with children, unmarried with children. Men have the same choice we've always had: work, or prison.

  9. #24
    T0P-CENT's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    88
    Reputation
    14
    Thanks
    17
    My Mood
    Stressed
    Quote Originally Posted by pushdis15 View Post


    dude u have no idea wdf u talkin bout every thing works if i remove
    Code:
    else
    msgbox("invalid code")
    the button1 when it is CLICKED 4 RANDOM NUMBERS APPEAR IN TEXTBOX 1 2 3

    u want me to send u the fkin code an i will remove the else msgbox invalid code . an show u it works ? dude gtfo


    i got every thing to gen but i want it if theres no numbers in the 3 textboxs then i want it to say INVALID CODE
    the code i gave u will not msgbox login sucessfull unless it is the same numbers were generated
    but here is the code to check if textbox doesn't contain numbers
    Code:
    If TextBox1.Text = "" Or TextBox2.Text = "" Or Textbox3.Text = "" Then
    Msgbox("Register Failed or whatever")
    Else
    Msgbox("Sucesfully Registerd or whatever")
    End If
    dude i can hardly understand what u want
    Last edited by T0P-CENT; 04-13-2011 at 10:59 PM.

  10. #25
    Erinador's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    224
    Reputation
    14
    Thanks
    111
    My Mood
    Bored
    Have you even bothered entering Button1 three times? If not then please don't ask for help again. If you refuse to use it.

  11. #26
    Functional's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    48
    Reputation
    17
    Thanks
    19
    My Mood
    Bashful
    Sweet christ this guy is retarded. Seriously, people have said time and time again to look at your fucking code. Your "IF" statment tests whether each textbox equals the STRING LITERAL "Button1", clearly a random NUMBER will not == "Button1" derp derp. Stop telling everyone else they are wrong because you can't admit that your code is wrong.

  12. The Following User Says Thank You to Functional For This Useful Post:

    willrulz188 (04-14-2011)

  13. #27
    willrulz188's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Ohio?
    Posts
    1,786
    Reputation
    35
    Thanks
    231
    My Mood
    Amazed

    Angry

    Quote Originally Posted by Functional View Post
    Sweet christ this guy is retarded. Seriously, people have said time and time again to look at your fucking code. Your "IF" statment tests whether each textbox equals the STRING LITERAL "Button1", clearly a random NUMBER will not == "Button1" derp derp. Stop telling everyone else they are wrong because you can't admit that your code is wrong.
    You used to many big words witch scares him so he won't understand you


    I gave him the answer...so I say close.. he chooses to not listen to other people on a help forum that is the reason

    "you can't say I need help plz and ignore people trying to help you (with the correct answer)" its just not right
    Question ALL statements! ?
    You're in denial that you're in denial. ?
    [img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]

  14. #28
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Why do i get the distinct feeling most of his code is leeched.
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov

  15. #29
    pushdis15's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    spokane washington
    Posts
    923
    Reputation
    20
    Thanks
    170
    My Mood
    Twisted
    Quote Originally Posted by wtfiwantthatname View Post
    Why do i get the distinct feeling most of his code is leeched.
    haha if it was leeched just like that in the code it show work with no problem an everything u guys said was way off i got it to work way easy then u guys try to explain it fail /close an all i had to do was like i said remove else invaild code an replace it with else register sucsessful bcz if i got the numbers random then there should be no invaild code @Jason @master /close plz
    PlayStation ID:
    Boxing509

    Quote Originally Posted by pushdis15
    Women now have choices. They can be married, not married, have a job, not have a job, be married with children, unmarried with children. Men have the same choice we've always had: work, or prison.

  16. #30
    ³²³'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    sef
    Posts
    302
    Reputation
    9
    Thanks
    19
    My Mood
    Angelic
    @master131
    @NextGen1
    @Jason

    @pushdis15
    You have no need to spam & troll. Reported

  17. The Following User Says Thank You to ³²³ For This Useful Post:

    willrulz188 (04-14-2011)

Page 2 of 3 FirstFirst 123 LastLast