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

!!Your First VB6 Program!! Its That Easy.

zaks

Member
Joined
May 5, 2007
Sythe Gold
0
Messages
55
ok.... you got visual basic six and it looks really complicated huh?
im going to show you one of the simplest programs you will ever make..

you will need the following..

(1. 1 command box (the blank button looking thing)

(2. 1 label (the big "A")

----------
step 1 make a new .exe

step 2 make a new label (stretch it across the form that you just made)

step 3 make a command button any size will do

step 4 click back on the lable rename it " lblHelloworld " and erase the caption

step 5 click back on the command button rename it " cmdhelloworld " type hello world in the caption

step 6 ok heres the hardest part and its easy ;) double click the command button that you just renamed to cmdhelloworld you should see this
Code:
Private Sub cmdhello_Click()

End Sub
all you have to do is click in the empty space between the two and add this
Code:
lblhelloworld.caption = "Your Text Here, it's that easy"
it will look like this
Code:
Private Sub cndhello_Click()
lblhelloworld.Caption = "Your Text Here, it's that easy"
End Sub

step 7 run the form (press F5) then click your Command button and watch what you created

step 8 play around with it and see what happens
-----------------------------------------------
yep its that easy
 
I beg to differ.

I find HelloWorlds a disgrace to programming. You should never start by doing a HelloWorld Tutuorial, they have nothing to do with anything, there boring and throws newbies off because they couldn't make any better than that which is basicly nothing.
 
I beg to differ.

I find HelloWorlds a disgrace to programming. You should never start by doing a HelloWorld Tutuorial, they have nothing to do with anything, there boring and throws newbies off because they couldn't make any better than that which is basicly nothing.

i just made it to show that its not as hard as most people think.
 
Most newbies don't think it is hard at all, give them a good login form Tutorial and they willed thrilled by how easy THAT is, then they can work off from it instead of knowing how easy a "HellWorld" app is, there shit and useless and the newbies even know that is to easy and want better and need better.

Try again and maybe you will succeed :)
 
Wait a minute.... People think vb6 is hard? Why didn't anyone inform me of this?!?
 
Your first program should not include any forms what so ever. This first program doesn't really constitute as a program.
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
My first program was actually quite complicated; translated english to L337 sp34k and back.
 
My first program was actually quite complicated; translated english to L337 sp34k and back.

lol
Code:
Public Function LeetSpeak(ByVal strText As String) As String
    Dim i As Long, strChr As String
    strText = Trim(strText)
    If strText = Empty Then
        Exit Function
    End If
    For i = 1 To Len(strText)
        strChr = Mid(strText, i, 1)
        Select Case strChr
            Case "a", "A"
                LeetSpeak = LeetSpeak & "4"
            Case "e", "E"
                LeetSpeak = LeetSpeak & "3"
            Case "r", "R"
                LeetSpeak = LeetSpeak & "2"
            Case "l", "L"
                LeetSpeak = LeetSpeak & "1"
            Case "s", "S"
                LeetSpeak = LeetSpeak & "5"
            Case Else
                LeetSpeak = LeetSpeak & strChr
        End Select
    Next i
End Function

etc, i was bored :D
 
If this is made for a first timer, probably explaining what everything does would help? Like a Private Sub? And what's happening when you click the button? That's assuming you know, and weren't looking for easy credit.
 
I beg to differ.

I find HelloWorlds a disgrace to programming. You should never start by doing a HelloWorld Tutuorial, they have nothing to do with anything, there boring and throws newbies off because they couldn't make any better than that which is basicly nothing.

I learned by the "HelloWorld Tutorial" but that was in school. Its a good tutorial. I dont have any problem with it. I dont see why other people do.
 
Its not really a program in my eyes, it serves no purpose and doesnt really teach anyone anything for starting VB,
 
duelarena.gg
Back
Top