welcome

Click here

Saturday, November 20, 2010

In this tutorial which is a very simple one you shall require.

In this tutorial which is a very simple one you shall require.

#A brain
#Visual Basic.NET:
http://www.microsoft.com/express/Downloads/#2008-Visual-Basic


#Being Able to follow instructions.

So if you have all three of those then lets go to the next bit of the tutorial.

Open up VB.NET

Click File then New

Then Select Windows Form Application.

and it should look something like this once you have clicked on it.



Click this bar to view the full image.



Once you have done that click on the blue bar at the top of the "program" we are going to be making and on the right hand side we should get some option that we can edit now.

Click this bar to view the full image.

We are going to edit the box that says Text (this is what comes up as the title of your program on the top.

So we have edited the text now in that same properties box on the right scroll through and on MinimizeBox and MaximiseBox

Click to the right of them and then select false so that users cannot minimize or maximise your program (this ruins your program if you have a image that is made specificially for how big you want the program to be)

Then we need to make the "program" bigger so click on the bottom right hand corner of the "program and drag it to your liking.

Now your "program should look something similar to this. Great!

Click this bar to view the full image.




Now to actually make something appear on it rather then just a blank empty box.

Go to the toolbox on the left.

Select a Checkbox and drag it onto the "program".

Click this bar to view the full image.



Now we have a checkbox if we click the Play button on the top bar you should see that you can as the name suggests check and uncheck this box.

Click on this box in VB.NET

again new properties should come up on the bottom right of the screen.

Scroll down till we find the text value in the properties.

I have labeled mine as A CHECKBOX.

We should be up to here now.

Click this bar to view the full image.



You may want to add more of these here and there so I have done that.

So we have got our boxs ready.

Now lets add in some text.

Go to the toolbox (where you got your checkbox from)

Scroll down and find Label and click and drag this onto your "program"

Again if you click on it in the right hand corner the properties for it should be there so lets edit the text on that.

I have changed mine to "My Program"

So we want it bigger. Yes?

So lets go to that properties section again and scroll till we find the font section.

Click this bar to view the full image.


Once we have done that reposition the text to somewhere you like and your done with that.

We should be up to here now.

Click this bar to view the full image.



Looks a bit blank and colourless doesnt it well we can fix that.

Click on the blue bar of the "Program"

New Properties should be in the right hand box.

Now lets scroll and find the "Back Color" value

and you can change this or you could find a image as a background and add that in.

So my program looks like this now.

Click this bar to view the full image.



So now we want a button on it to give the impression that this is doing something.

Go to toolbox and drag and drop button on your "program"

Now click on button and drag it to make it bigger or smaller.

Then change the text on it in the properties.



Now you say we want to add in a picture this is very simple we shall just go to the toolbox and then scroll down to picture box and drag that onto the "program"

Then in the properties box select the BackgroundImage and add your image in there and voila you have a image. Then resize it and play around with it till you are satisified with your layout and design.

It should then look somthing similar to this

Click this bar to view the full image.



So this is my version completely finished.

Click this bar to view the full image.



Now hold down Ctrl+shift+b and it should build your application!

Thanks for reading this tutorial if you found it helpfull then feel welcome


Regards

No comments:

Post a Comment