Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Visual Basic Training


    mental
     Share

    Recommended Posts

    I wont be giving you much of crap here lets get started rightaway .

     

    Lesson 1 :

     

    1.Open you Visual Basic

    2.Select new Standard.exe file

    3.Press Open

     

    Now you will see your work space. Properties, General Tool Window, Property Manager and the Form Workspace .

    Click on your form and size it to your wanted size once done go and change its properties in right panel .

     

    Caption : Form1 // Change this to what ever will be the name off application in our example "Test Application"

    BackColor // Change the background of the form or. window here

    BorderStyle // Here you can change you window style so it can be re sizable and so on my favorite is FixedToolWindow

    Font // Here you will change the font of thetext on your form

     

    Change only these for the time .

     

    Now when you got your application ready lets get on to second Lesson.

     

    Lesson 2 :

     

    Take a Button tool from the General Tab and draw a button anywhere on Form and go to the left

    panel and change these to you likings :

     

    Caption // The name of the button or text that will be displayed on the button In my example chose "Say Some Thing" Cuss we will make app say something

    Font // The text style on the button

     

    Ok now that you completed that go and double click on the button>

    A code window appears // there are two different parts in visual basic and c++ // one part is visual this

    is where you put buttons and change and make the lo0k off your application here you add everything for the look and use. In the sceond

    part that is coding part well here we make all those visualizations do something . In other words we give them functions.

     

    Ok now when you are in buttons code window you will see :

     

    Private Sub Command1_Click()

     

    End Sub

     

    This code. This is the main button code its similar to one in HTML <body> </body> or <head> </head>

    the explanation of main code is easy >

     

    Private Sub Command1_Click() // Private Sub is a form statement so the form knows to point to certian object and the Command1 is the

    name of this certian object located on the form in our example this will be the button .

     

    _ // This is a separator for action that will be taken once we click on a certian object its like in Flash-Action Script function = Get-URL

    so instead of - or space we have this separator .

     

    Click // this is the button function just like in Flash-Action Script Stop or Play and so on. This will give the command1 button his action

    so he will know that he will be clicked and he will do something but what will he do that we must write between these 2 main codes.

     

    End Sub // This ends the functions for our button its like in html <body>/starts the code and </body> ends the code .

     

    Now that you are familiar whit the main button code lets get to adding a function to it . The names of functions are realy like the thing we

    want to do just like in flash we got if we wwant a movie to play we put Play in the script if we want it to stop at certian frame we type stop.

     

    Lets get on whit the project .

     

    In the empty area between the main code of the button type in Print and it will be highlighted blue or black

    Now press space and ad a quote and type wazzap > "wazzap" . Press the play button in the top bar and your application will be run

    and when you will press on the button it will say wazzap

     

    Here is the complied this is how it should look like :

     

     

    Ok explanation :

     

    Private Sub Command1_Click()
    Print "wazzap" 
    End Sub

     

    Print // This is global action for c languages when used it will print out some words or numbers or whatever we puted there in quotes

    "xxx" // What ever will be typed in here will be displayed afterwards when we press the button

     

    Lesson 3 :

     

    Making it count :

     

    Delete the Print "Wazzap" and put in Print = "50+50+50+10"

    now run you application whit play button press it and you will thee that button has calculated everything that is in the quotes

     

    Print = "x+x-x/x*x" // > this will say that button must calculate everything in the quotes and then display it when its pressed

     

    MSDN Must be installed error" When yo installed VB you must have left it out go and install it again .

     

    Rest in coming soon :

     

    Complie the program in the left tree window select Project1 right click and press Publish and build outputs.. and then just follow it

    you project will be located in C/PF/Microsoft VB/VB98/Project1.exe

    Link to comment
    Share on other sites

    • 2 years later...

    looks great. O.o

    cant even put in a button omg.

    vb 2008?

    wdf man. i dont get shit of this.

    Edited by reteveter
    Link to comment
    Share on other sites

    OMFG this is so frustrating!! i cant do shit with it!!

     

    reason for new post is i cant edit previous one

    Link to comment
    Share on other sites

    • 4 months later...
    looks great. O.o

    cant even put in a button omg.

    vb 2008?

    wdf man. i dont get shit of this.

    you go to the tools tab on the left click the top one from the list and find button desighb

    Link to comment
    Share on other sites

    • 8 months later...

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Loading...
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...