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 Concatenate Strings Into MessageBox on 9/28/2014, 6:20 am


Admin & Writer
What this code does is it takes what the user enters into TextBox1 and TextBox2. Upon the click of the button, it takes the two strings and inserts a space between them (or whatever is in the quotes) and displays the strings from the two textboxes in a MsgBox.

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
        Handles Button1.Click
        Dim str1 As String = TextBox1.Text
        Dim str2 As String = TextBox2.Text
        Dim concat As String
        concat = str1 & " " & str2
    End Sub
End Class

You could also use other controls, such as a ComboBox or a ListBox instead of the two TextBoxes or you could even combine both of them or have three of them, but I'll leave that up to you to figure out.



Good job, working with Strings is more important than one may think Wink



Uber Website Hacker and Mod
Yes it really is. Take it from someone who codes c++ for a living


++Mentor++ wrote:We explore... and you call us criminals. We seek
after knowledge... and you call us criminals. We exist without skin color,
without nationality, without religious bias... and you call us criminals.
You build atomic bombs, you wage wars, you murder, cheat, and lie to us
and try to make us believe it's for our own good, yet we're the criminals.

Yes, I am a criminal. My crime is that of curiosity. My crime is
that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me

I am a hacker, and this is my manifesto. You may stop this individual,
but you can't stop us all... after all, we're all alike.

Sponsored content

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