We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,478 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

visual basic

I need visual basic code for inputing name and address to 2 separate text box then display in address label....

3
Contributors
12
Replies
4 Days
Discussion Span
3 Years Ago
Last Updated
13
Views
Question
Answered
loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

http://www.daniweb.com/forums/announcement4-2.html

after reading this come back with your code and I wll gladly help if there are any errors.

abhi.navale
Light Poster
38 posts since Apr 2009
Reputation Points: 23
Solved Threads: 6
Skill Endorsements: 0
label1.caption = text1.text + text2.text

I give you a very simple code. you can modify it as your requirement.

abu taher
Practically a Posting Shark
847 posts since Jul 2008
Reputation Points: 14
Solved Threads: 78
Skill Endorsements: 0

http://www.daniweb.com/forums/announcement4-2.html

after reading this come back with your code and I wll gladly help if there are any errors.

abhi...
Im trying to input information like the first name, last name , address , state city and zip code in each designated text boxes then Display the lines of output for a mailing address in 3 lines lebels.. Sorry Im really new to vb I hope you can help me....

Address Labels diplays should read like this:

Line 1 the first name and last name concatenated together with a space betweet
Line 2 the street address
Line 3 the city, state and zip code concatenated together. (Make sure to concatenate a comma and a space bet the city and state, using "," and two spaces bet the state and zip code.

Thank you again for your help...

loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
label1.caption = text1.text + text2.text

I give you a very simple code. you can modify it as your requirement.

thank you Abu Taher for your replay.. I will try this code and I will let you know....

loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

try this

Private Sub Command1_Click()
Dim a As String
Dim b As String
a = Text1.Text
b = Text2.Text
s = Space(3) '3 mean how many space....you can change it
Label1.Caption = a + s + b
End Sub
abu taher
Practically a Posting Shark
847 posts since Jul 2008
Reputation Points: 14
Solved Threads: 78
Skill Endorsements: 0
label1.caption = text1.text + text2.text

I give you a very simple code. you can modify it as your requirement.

THANK YOU.. IT WORKED .. I JUST DIDN'T USE THE CAPTION....

How can I concatenate two spaces between the state and zip code?

Thanks again in advance....

loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

use 2 instead 3. like

s = Space(2)
abu taher
Practically a Posting Shark
847 posts since Jul 2008
Reputation Points: 14
Solved Threads: 78
Skill Endorsements: 0
Question Answered as of 3 Years Ago by abu taher and abhi.navale

use 2 instead 3. like

s = Space(2)

Thank you so much for your time I really appreciate it... I can now sleep well ....

loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

http://www.daniweb.com/forums/announcement4-2.html

after reading this come back with your code and I wll gladly help if there are any errors.

Abhi...

Im trying to do my initial statement for not showing my picture box what is the code ?

loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Abhi...

Im trying to do my initial statement for not showing my picture box what is the code ?

Do you mean that you want to hide that picture box at the startup of the form?
if not, then i dont get you question.

abhi.navale
Light Poster
38 posts since Apr 2009
Reputation Points: 23
Solved Threads: 6
Skill Endorsements: 0

Do you mean that you want to hide that picture box at the startup of the form?
if not, then i dont get you question.

yes i don't want the picture box showin when I first run my program... How can i do this? but after clicking the button it should come out...

loulule
Newbie Poster
7 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

yes i don't want the picture box showin when I first run my program... How can i do this? but after clicking the button it should come out...

Go to properties windows of Picturebox and make Visible=False

OR

write this code by double clicking on form1:

Private sub form1_load()
PictureBox1.Visible=False
End sub


Then to get this picture box by clicking on button write this code by double cliking on button:

Private sub Button1_Click()
PictureBox1.Visible=True
End sub

abhi.navale
Light Poster
38 posts since Apr 2009
Reputation Points: 23
Solved Threads: 6
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.1168 seconds using 2.7MB