Welcome dear guest! Very Happy

To start posting and being part of the community, you simply need to register an account or log into an existing one.

Be sure to check out disposable e-mail services, in case you prefer using one for this site instead of your legit address: http://10minutemail.com/10MinuteMail/

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can see and download all content provided for regular members even without an account!

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation

Display results as :

Rechercher Advanced Search

June 2018

Calendar Calendar

Country Statistics
Free counters!
LaTeX Generator

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 TextBox Text Compare on 9/27/2014, 1:28 pm


Admin & Writer
What this code does is checks if the textbox text is "BWH is best", upon the click of the button. If it equals "BWH is best", then the MsgBox displays "Damn right!". If the text is anything but "BWH is the best", then MsgBox displays "N00b!". It is very easy to remember and anyone should be able to write this code, even if they are a beginner.

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
        Handles Button1.Click
        If TextBox1.Text = "BWH is the best" Then
            MsgBox("Damn right!")
        End If
    End Sub
End Class


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum