You are viewing our Forum Archives. To view or take place in current topics click here.
VB - How to make your first program display text TUT Easy!
Posted:
VB - How to make your first program display text TUT Easy!Posted:
Status: Offline
Joined: Sep 15, 201014Year Member
Posts: 2,871
Reputation Power: 155
Status: Offline
Joined: Sep 15, 201014Year Member
Posts: 2,871
Reputation Power: 155
In this tutorial I will be teaching you how to make your first simple windows application output. This is very basic and after completing this task I hope you will go on to looking at more tutorials and progressing further. If this tutorial is succesful I will add more tutorials onto this post such as creating loading screens, generating calculations etc.
What you need
Creating the program
1. [ Register or Signin to view external links. ]
We will be greeted by the open menu, we first want to click the top left option New Project-->Windows Form application --> OK
2. [ Register or Signin to view external links. ]
On our left we can see the tool box, we can click and drag items we want into our program onto the grey area. We will first start off with the button, click and drag that into the grey area.
[ Register or Signin to view external links. ]
The properties box should display in the bottom right corner, if not click on the windows tab then 'display properties box'. In this box we are able to change many option but the text of the button, the code name of the button is all we're after.
[ Register or Signin to view external links. ] change the text to Enter, then click the slider scroll up to (name) call it btnEnter [ Register or Signin to view external links. ]
3. Drag and drop 2 Text boxes from the toolbox. Using the same way we named the enter button change the name of the first text box to txtInput and the second as txtOutput
4. Now click the enter button to enter into developer mode.
[ Register or Signin to view external links. ]
Simply enter in this code
MessageBox.Show("Hello, this is the output!")
Now you're ready to save by clicking save all(very important as this will save all forms ) [ Register or Signin to view external links. ]
5. You're ready to debug your program, click the little green arrow on the top row of the GUI. [ Register or Signin to view external links. ]
Now the form window should pop up [ Register or Signin to view external links. ]
Click the enter button and... [ Register or Signin to view external links. ]
our message box has displayed! why not try searching on youtube for some more tutorials on how to advance this program?
Again this is a very basic tutorial but I hope some find it useful for starting out
Last edited by Sylux ; edited 1 time in total
What you need
Creating the program
1. [ Register or Signin to view external links. ]
We will be greeted by the open menu, we first want to click the top left option New Project-->Windows Form application --> OK
2. [ Register or Signin to view external links. ]
On our left we can see the tool box, we can click and drag items we want into our program onto the grey area. We will first start off with the button, click and drag that into the grey area.
[ Register or Signin to view external links. ]
The properties box should display in the bottom right corner, if not click on the windows tab then 'display properties box'. In this box we are able to change many option but the text of the button, the code name of the button is all we're after.
[ Register or Signin to view external links. ] change the text to Enter, then click the slider scroll up to (name) call it btnEnter [ Register or Signin to view external links. ]
3. Drag and drop 2 Text boxes from the toolbox. Using the same way we named the enter button change the name of the first text box to txtInput and the second as txtOutput
4. Now click the enter button to enter into developer mode.
[ Register or Signin to view external links. ]
Simply enter in this code
MessageBox.Show("Hello, this is the output!")
Now you're ready to save by clicking save all(very important as this will save all forms ) [ Register or Signin to view external links. ]
5. You're ready to debug your program, click the little green arrow on the top row of the GUI. [ Register or Signin to view external links. ]
Now the form window should pop up [ Register or Signin to view external links. ]
Click the enter button and... [ Register or Signin to view external links. ]
our message box has displayed! why not try searching on youtube for some more tutorials on how to advance this program?
Again this is a very basic tutorial but I hope some find it useful for starting out
Last edited by Sylux ; edited 1 time in total
#2. Posted:
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
I don't wanna be that guy but....
this is VB .net, not C#. Although it's pretty much the exact same anyway.
this is VB .net, not C#. Although it's pretty much the exact same anyway.
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Sep 15, 201014Year Member
Posts: 2,871
Reputation Power: 155
Status: Offline
Joined: Sep 15, 201014Year Member
Posts: 2,871
Reputation Power: 155
ObscureCoder wrote I don't wanna be that guy but....Very true, my fault for copying the sticky style hehe.
this is VB .net, not C#. Although it's pretty much the exact same anyway.
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Aug 02, 201212Year Member
Posts: 1,915
Reputation Power: 77
Status: Offline
Joined: Aug 02, 201212Year Member
Posts: 1,915
Reputation Power: 77
So what was the point of the two textboxes? JW, I mean it's good for beginners but I was wondering if you meant to add them or they were just there.
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Sep 15, 201014Year Member
Posts: 2,871
Reputation Power: 155
Status: Offline
Joined: Sep 15, 201014Year Member
Posts: 2,871
Reputation Power: 155
Possess wrote So what was the point of the two textboxes? JW, I mean it's good for beginners but I was wondering if you meant to add them or they were just there.It was originally to help grasp the input and output method, but it's mainly for another tutorial if this one is any good
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.