• Log in or sign up for an account here: https://www.sythe.org/login

visual studio 2008 tutorial #1

  • Thread starter Thread starter 128729972
  • Start date Start date
1

128729972

Guest
please tell me if you would like a download link to visual basics 2008 full for free its a torrent and iam seeding it so that hopefully you dont need to wait so long!



Ok in this tutorial we will go over many things to make a succecefull program weather its to sell or to cheat we will go over:


:laugh: Chapter one::laugh:

msgbox camands
multipule results
how to make a home made web browser(basics)!
making show your message program!
:D extras!!!:D
:rolleyes: more and site coming soon:cool:


chapter 1:

the basic of msgbox

ok make a new 'windows forms aplication' or the first box under windows:
then put in a button under text put 'check answer' then then put in a textbox above that and name it textuser now double click on the button.
now its time we learn the scripting part of the program now it will most likley say

Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub
End Class

now what we whant it to look like is this


Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click






    End Sub
End Class


ok go one line under private sub and type
if textuser.text = "yes" then
msgbox(" you have asnwered corectly")

what this does is simple if they type yes in the box then they get a messege that says you have answered correctly now...
now what happens if they type somthing else bam it freezes and you have to shut down your cpu ok now 1 line under the code we just typed put

Code:
else
msgbox(" you have answered wronge")

ok so that finishes it now test it in the next part we will expand it by 100%!


expanding visual basics

ok firstly make a new one and same as up there exept we whant to make the form 533x458 and at the top have a label across the top that is named 'heading' its text is ' are we really 20% monkey?' and go to the font and hit the + next to hit go to size and type in 30 or where the text is spread desently.

now under that add a textbox named textuser and under that a button that is named submit next i will tell you how to configure the two for great results!:p

ok lets start with the textbox simply look in its properties. and in its font size make it 10 and under italic put true if you whant it bold go ahead but I choose not to.

ok now fo the button make it nice and big and in its properties under font make it 12 and make it so its text is 'check answer' then when you are done double click on the button and under privatesub put in 5 blank lines

now fore some fun. ok one line under copy and paste this code:

replace all the code with this if you where doing it right it should be working fine:
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        If Textuser.Text = "yes" Then
            MsgBox("You believe in eveloution your choise is: As the jungle of asia grew more populated monkeys started to evolve first they grew thumbs then a new creature was born from a certain ape and this creature known as the early human escaped asia to find ne wland and more food the monkeys hid and hitched a ride")
        ElseIf Textuser.Text = "no" Then
            MsgBox(" You have choosen the believe in creation and believe all animals where made to be speacial")
        ElseIf Textuser.Text = "This is based on opinion" Then
            MsgBox("You are wise as you are smart and you are corect amazingly and if you think diferently well your dumber then you apear to be")
        Else
            MsgBox("May need to remind you this is a yes or no question not a 'bob' question please answere responsivly")


        End If


    End Sub
End Class

:p now ill explain the parts you see you can only have one if so if you whant to add more options you add elseif and explain it really usefull when making a search engine whithoute url just your information exccept you wouldn't use msgbox you would use a new form to pop up and have multipule answres and what not. and else if you havent figured it out means if its not whats above its whats under else if this doesnt work tell me.


How to create a basic web browser

it is late where i am so it wont be vary detailed ill edit in the morning and mabey add a chapter or 2 but here we go.

ok simply make a large form that will be the web browser then get a panel and drag it onto the form then you go into its properties select dock and press up then make the panels background grey and adjust its height. then add an editbox ontop and a button the buttons text will be 'go!'
then you get a web browser and go to its dock and select fill. then double click on the button and replace the code with this code!
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate(TextBox1.Text)

    End Sub
End Class
and thats how to make a web browser

show your message program (advanced looking)!

ok so first of all we whant a great look so first put a panel at the top (go into the panel properties and go to dock and press top) then put a label that says 'message' then a text bok under that and next to that a button that says 'display' now adjust the panal size if needed then adjust the form size so its anly the panel now if you whant to pimp out the panel go to next paragraph if you dont skip it.

ok so make shure the panel is gray now go get an awsome picture of the web and save it be shure it can fit into the panel area. then when your done click on the panel properties and find backgroundimage and look for the picture and click then wala you have a great panel for pro looking project.

ok so we are going into the code and under private sub put 5 lines on the second line type in
Code:
 MsgBox(" The message you whanted to display was" & TextBox1.Text, MsgBoxStyle.Question, "message display center")

you will notice how i ahve msgboxstyle.question well erease that and a box will pop up showing you themes i shose question for a script ill be teaching you to do in a minute.expiriment with it.
ill be showing you a full functuional web browser that has the abitlity to priview runescape and youtube videos!(when i say runescape i mean a world whithout having to choose detail and what not.)in my next update!


:p :p :p :p :p :p :p :p Extras!:p :p :p :p :p :p :p :p :p


speaking of link lest talk about...


linklabel(somthing next to label same icon but blue)


ok alls it is is it allows you to put links into your programs so lets say an rs link simple put the link in start the program click it and if nothing happens ill have to look up what to do.



Website coming soon!!!
with video aid and great destail!!!


great web hosting and builer at http://jimdo.com better then freewebs you get unlimited pages and more!!!

it will have proffesional look so far iam using flash player to make the vidios also will have pictures for those without flash player or youtube videos.





I am sorry when I made this tutorial I was a bit forgetful on the labels what the questions where hint hint the MSG boxes where bout evolution the first one was my choice.please post good or bad
 
Member of the Month Winner
Sythe's 10th Anniversary
I guess it's alright to see that you went past a simple helloworld application, even if this is a simple tutorial. I figure it's an alright tutorial for beginners.

However, with this:
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        If Textuser.Text = "yes" Then
            MsgBox("You believe in eveloution your choise is: As the jungle of asia grew more populated monkeys started to evolve first they grew thumbs then a new creature was born from a certain ape and this creature known as the early human escaped asia to find ne wland and more food the monkeys hid and hitched a ride")
        ElseIf Textuser.Text = "no" Then
            MsgBox(" You have choosen the believe in creation and believe all animals where made to be speacial")
        ElseIf Textuser.Text = "This is based on opinion" Then
            MsgBox("You are wise as you are smart and you are corect amazingly and if you think diferently well your dumber then you apear to be")
        Else
            MsgBox("May need to remind you this is a yes or no question not a 'bob' question please answere responsivly")


        End If


    End Sub
End Class

It would be much better to use what is known in Visual Basic as a Select Case statement. In C based languages it is known as the switch statement. I haven't used VB in a while, but I think it goes something like this:

Code:
Select Case textBox1.Text
    case "yes": DoShit()
    case "no": DoOtherShit()
    case "idgaf": idgaf()
End Select

You might like to do some searching, because I'm almost certain that that code there won't work.

Also, Visual Studio Express Editions are free from http://www.microsoft.com/express. There is no need to torrent them.
 
You may want to put that in a combobox where they choose there answer instead!
 
all of the code does work again swan this was my early post and i do remember this was before the rules i will be updating it however if you think it is of course to Noobish and the code does work ty for the link all my torrents broke(:

i didn't do combo boxes because i think that the user should be aloud to type what they think and so that they don't need to feel mistrusted lol just my thoughts.
 
Runescape Gamblingrunescape gambling
Back
Top