Results 1 to 8 of 8
  1. #1
    PandN's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    GULF COAST OF FLORIDA ^^
    Posts
    507
    Reputation
    7
    Thanks
    46
    My Mood
    Happy

    Fun with Visual Basics *VB for choops*

    Ok here is some easy Visual Basics TuT. I use Liberty BASIC which if a very simple and free VB Compiler. It can be downloaded the they're site for free just search Liberty BASIC.

    Ok here is the first simple TuT This will ask you some thing then prompt you to end a name, age, word, etc.

    Code:
    NOTICE "Please enter your boss's name."
    PROMPT "Enter name here.";name$
    NOTICE name$ + " That sounds like the name of a moron"
    END
    There is a fun and easy one you can change the NOTICE's to make it say different thing like if it ask for age replace the "name$" with "age$"

    Now here is a big code you maybe as well off to copy/paste this one unless you have alot of time on your hands.

    WindowWidth = 120
    WindowHeight = 144
    nomainwin
    open "Clock" for graphics_nsb_nf as #clock
    print #clock, "trapclose [exit]"

    print #clock, "fill white"
    for angle = 0 to 330 step 30
    print #clock, "up ; home ; north ; turn "; angle
    print #clock, "go 40 ; down ; go 5"
    next angle

    print #clock, "flush"

    timer 1000, [display]
    wait

    [display]


    time$ = time$()
    hours = val(time$)
    if hours > 12 then hours = hours - 12
    minutes = val(mid$(time$, 4, 2))
    seconds = val(right$(time$, 2))

    '
    if segId > 2 then print #clock, "delsegment "; segId - 1


    print #clock, "up ; home ; down ; north"


    if oldHours <> hours then print #clock, "size 2 ; color white ; turn "; oldHours * 30 + int(oldMinutes/2) ; " ; go 19 ; home ; color black ; north" : oldHours = hours
    if oldMinutes <> minutes then print #clock, "size 2 ; color white ; turn "; oldMinutes * 6 ; " ; go 38 ; home ; color black ; north" : oldMinutes = minutes
    if oldSeconds <> seconds then print #clock, "size 1 ; color white ; turn "; oldSeconds * 6 ; " ; go 38 ; home ; color black ; north" : oldSeconds = seconds


    print #clock, "size 1 ; turn "; seconds * 6 ; " ; go 38"
    print #clock, "size 2 ; home ; north ; turn "; hours * 30 + int(minutes/2); " ; go 19"
    print #clock, "home ; north ; turn "; minutes * 6 ; " ; go 38"


    print #clock, "flush"
    print #clock, "segment"
    input #clock, segId

    wait

    [exit]

    timer 0
    confirm "Quit Clock?"; q$
    if q$ = "yes" then
    close #clock
    else
    timer 1000, [display]
    wait
    end if

    end



    There a long code but this one makes a CLOCK cool ah? I post more TuT's if people want me to.

    Thank and Rep if it helps you.

  2. The Following 2 Users Say Thank You to PandN For This Useful Post:

    reyes94x (07-23-2009),weerayut (07-17-2009)

  3. #2
    Vannillia's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    In Here Burning Smart Asses Lawlz ^^
    Posts
    174
    Reputation
    11
    Thanks
    25
    My Mood
    Happy
    Hay there how do you turn a internet explorer u made in Vb into exe and i cant upload it on mpgh for some reason

  4. #3
    Threadstarter
    Expert Member
    PandN's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    GULF COAST OF FLORIDA ^^
    Posts
    507
    Reputation
    7
    Thanks
    46
    My Mood
    Happy
    Quote Originally Posted by Vannillia View Post
    Hay there how do you turn a internet explorer u made in Vb into exe and i cant upload it on mpgh for some reason
    Well I am not sure it's diff from compiler to compiler.

  5. #4
    Vannillia's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    In Here Burning Smart Asses Lawlz ^^
    Posts
    174
    Reputation
    11
    Thanks
    25
    My Mood
    Happy
    ekkk i duno what u mean but like when i build project etc i get like 3 files and i cnat upload them onto here

  6. #5
    Threadstarter
    Expert Member
    PandN's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    GULF COAST OF FLORIDA ^^
    Posts
    507
    Reputation
    7
    Thanks
    46
    My Mood
    Happy
    Quote Originally Posted by Vannillia View Post
    ekkk i duno what u mean but like when i build project etc i get like 3 files and i cnat upload them onto here
    Shit i dont no your on your own sry lol

  7. #6
    ·Matt·'s Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    6
    My Mood
    Brooding
    You people make no sence

    Made by andrewgeltz
    Pressing the Thank button wont cost you money.

  8. #7
    Vannillia's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    In Here Burning Smart Asses Lawlz ^^
    Posts
    174
    Reputation
    11
    Thanks
    25
    My Mood
    Happy
    ok letme put it in a easier way how do i put completed projects like setup and windowsapplication1 onto mpgh

  9. #8
    Micheltjuh's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Holland
    Posts
    643
    Reputation
    10
    Thanks
    59
    My Mood
    Cynical
    Compress them into a .rar file with Winrar, and upload them.

Similar Threads

  1. Help With Visual Basic 2008 And The PushToConsole Command
    By CrossFireHacker V1 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 08-23-2010, 04:21 AM
  2. Need Help With Visual Basic 2008
    By xsaban13x in forum Combat Arms Discussions
    Replies: 2
    Last Post: 04-19-2010, 01:43 AM
  3. New Language with visual basic !!!
    By MJLover in forum Visual Basic Programming
    Replies: 9
    Last Post: 02-27-2010, 10:45 AM
  4. Need help with visual basic PHISHING program
    By mariofan901 in forum Visual Basic Programming
    Replies: 14
    Last Post: 10-10-2009, 11:27 AM
  5. [Help] Atom API with Visual Basic 6.0 or .NET
    By Bull3t in forum Visual Basic Programming
    Replies: 5
    Last Post: 07-23-2006, 09:21 AM

Tags for this Thread