|
-
Jul 26th, 2005, 04:54 PM
#1
Thread Starter
New Member
[RESOLVED] Can someone help a newbie out?
I'm trying to just create a simple program that does the following:
Enter your name: yournamehere
And then the program spits out:
Welcome to my program: yournamehere
Can anyone tell me where to begin?
-
Jul 26th, 2005, 04:59 PM
#2
Re: Can someone help a newbie out?
put a textbox and a command button on a form and put this in the command buttons click event
VB Code:
Private Sub Command1_Click()
MsgBox "Welcome to my program: " & Text1.Text
End Sub
notice the use of the ampersand(&) to join two strings together
casey.
-
Jul 26th, 2005, 05:10 PM
#3
Re: Can someone help a newbie out?
Welcome to the forums, it seems as if your new to VB, so am i, have been coding for about 10 months.
Some advice, go to www.vbcode.com and download a few simple programs, and edit them for your own use, you should learn so much from this.
Cheers
ILMV
-
Jul 26th, 2005, 05:32 PM
#4
Re: Can someone help a newbie out?
To Jeff: Be sure to give sensible thread titles next time, Jeff. Take a look at the link in my signature on that to see what I mean. Also since your problem is resolved, go upto Thread Tools and click on [Mark Thread Resolved] 
To I Love My Vans: 10 Months? 13 years here. 8 years in VB
-
Jul 26th, 2005, 05:37 PM
#5
Re: Can someone help a newbie out?
 Originally Posted by Jacob Roman
To I Love My Vans: 10 Months? 13 years here. 8 years in VB 
And when did your DirectX obsession begin? 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Jul 26th, 2005, 05:38 PM
#6
Re: Can someone help a newbie out?
Ohhhhh I'd say 2 maybe 3 years ago. Before then I spent like 3 years making a 3D engine using pure VB. Found out the hardway that DX pwned in that department.
-
Jul 26th, 2005, 05:42 PM
#7
Re: Can someone help a newbie out?
Even easier!
VB Code:
Option Explicit
Private Sub Form_Load()
MsgBox "Welcome to my program: " & InputBox("Enter Name:", "Name")
End Sub
-
Jul 26th, 2005, 06:57 PM
#8
Re: Can someone help a newbie out?
 Originally Posted by dglienna
Even easier!
VB Code:
Option Explicit
Private Sub Form_Load()
MsgBox "Welcome to my program: " & InputBox("Enter Name:", "Name")
End Sub
Not bad, but not very easy to read/understand for someone who doesn't know how the flow of execution would work.
I reccomend checking out a book on VB from your local library. Thats how I taught myself. Since then most of what I have learned have been from these forums.
PS - When your questions has been answered please follow the directions in my signature to mark this thread as resolved.
-
Jul 26th, 2005, 07:25 PM
#9
Thread Starter
New Member
Re: Can someone help a newbie out?
Thanks Casey - that seemed to do the trick!
-
Jul 26th, 2005, 08:16 PM
#10
Re: [RESOLVED] Can someone help a newbie out?
Also don't forget to rate peoples posts who have been helpful. Some newcomers tend to miss the Reputation system until someone actualy tells them that there is one. That's what that green gem is underneath your Post count
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|