Added: 4 years ago
From: SilverMagics
Views: 246,298
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (358)

Sign In or Sign Up now to post a comment!
  • How do you make to objects within an enclosure not overlap when randomly allocated?

  • and god created gif extension.

  • Comment removed

  • Private Sub Timer1_Timer()

    If x = 3 Then x = 1

    Else x = x + 1

    End If

    Picture1.Picture = LoadPicture("animation" & x & ".jpg")

    End Sub

  • Comment removed

  • A nice example is show here aswel:

    bulevardi.be/?content=scriptin­g&example=exvb4

  • Hello Friend! I am a beginner in programming, I Think you did a great job for the ones like me..Thanks a lot.

  • Why you not use

    IF Else

    this can use only 1 timer and 3 picturebox!!

  • please upload more tutorials coz I will be teaching this subject in high school computer and I only have a little knowledge .......tnx.....

  • 3 timers for that? It look like you know nothing in programmation at all.

  • @mast3rbug Haha programmation? Programming, as it's properly called. I actually learned a whole lot from doing what i did back when this video was made. Making tutorials helped me to see what i could do to improve codes like this.

    I can honestly say that this was actually a good video. I prepared, i started and completed a project that i planned from start. I might not have had the most effecient code, but it worked for what i wanted to do.

  • @SilverMagics Sure, I'm agree with that. But other that see your video will probably learn the wrong way.You can do it with only 1 timer OR you can simply use the sleep function from the kernel after declaring it.

    An example of bad programmation is Microsoft. Just as example, MSN messenger is about 130 meg, and other MSN compatible messenger take about 2-3 megs.

  • @SilverMagics programmation,tion,tion programmation,tion,tion!

  • @SilverMagics yeah but you coulda just used an animated gif made in say, gimp(which is free and simple) or you could just google image search one!!!!!!

  • check your codes

  • Oo windows 98

  • No way, I thought of that method too but is that the only way to animate in VB? OAO

  • That's was nice

  • Type PRIZE before youtube and hit enter

  • kannste mir vllt helfen =) sende mir ne mail oder so :) würde mich sehr freuen muss ein Programm machen mit ankreuzhäckchen ^^ wo ich verschiedene unwirksame viren rein machen ( die habe ich selber schon erstellt ) brauche nur jmd der mir zeigt wie ich die da rein bekomme

  • woaah frick! u got windows98... much higher number than mine! i got 7..

  • @mimias007 so what's about the OS? its the VB not the OS....moron

  • @mimias007 so what's the deal?......its about VB not windows OS.

  • great video !

  • i dint get it means wer we can find dat notep[ad

  • can you upload your animation gifs please ? ?

  • Nederlander!

  • hey i changed computers can you send me a safe link to download it i forgot

  • Im new to programming and VB, instead of putting the long winded:

    "timer2.enabled = Flase" - why cant you just put "timer2.DISABLED" - wouldnt that just make more sense?

  • @viewervideo011242234 @viewervideo011242234 in programming, not just vb in case of a case like enabled or disabled you always have the positive value (enabled) and either true or false and it actually makes more sence and the program is faster, because it is translating less commands. if it were the programs to have positive and negative values

    e.g timer1.disabled

    then your programs would be 50% slower.

  • @viewervideo011242234 Try it. That's one of the great things about programing, you can be creative :)

  • @Hax0rPr0n did you happen to skim over the "lol just kidding" at the end of the comment, dumbass?

  • any link i want this one plz

  • are you swedish?

  • I'm using VB08, but this video still helped me a lot! Thanks!

  • I saw the map 'Monster Hunter' fly by, you play that game?

  • @remcokiddy Yup :) Got most games in the series.

  • @SilverMagics Monster hunter tri as well i suppose

  • @SilverMagics mine was blicking

  • where did u download the game? can i have the link pleaseeeee?

  • @remcokiddy there is no such thing as play, thee is no such thing as game fish, thee is no such thing as game as fish.

  • @thejamaicanscarface You completely lost me when you got to game fish...

  • im new to VB and if i understood correctly, image 2,image3, timer2, and timer3 were not used in the program at all. why even bother adding it?

    i am keen on replies.

  • I miss vb6

  • yeah your doin a good job.tnx

  • Well I can't say it's the WORST VB6 tutorial I've ever seen, but it's certainly up there.

  • VB6 is the worst language ever created. C# FTW.

  • @kraetwin Yeah dude.  VB6 Programmers have no soul.

  • thanks a lot it help me a lot..hope i will know your next program.. thank you again its great

  • Thanks that will be usable =)

  • Im reading a book about programming,

  • very interesting. I'm noob to VB. Cant wait to learn it, looks fun/versatile

  • excelent video xD: cudiate me boii pasas xD: jje sale baiii

  • Double U TF Mate.

    En succes met je duits ofzo O.o :S

  • @Oplosthee homo

  • @SilverMagics yes...

  • @SilverMagics What the fuck is je probleem eigenlijk?

    Waarom "homo" reageren tegen oplosthee? :S

    Ffs, zat je daar zo van "fuck. wat moet ik zeggen?"

    en je typt maar ff homo.

    Yeah right, je bent vast zelf een homo he? :p

  • I like it!

  • six point nul? XD

  • that program is very bad... why use 3 timer... or 3 imagewell?... very bad... if you dont know how to program why doing a tutorial

  • @kelipop my tutorials are more or less my learning process in Visual Basic. These have taught me the basic fundamentals of Visual Basic and should act as a tutorial for beginners to show them what has been my knowledge about VB6. This language is old and out of date, learning this now is stupid as there are more powerfull languages at hand, BUT VB6 might be the BEST language to learn the fundamentals as what this video was meant to do.

    Nowdays i code in html, css and php.

    - Silver

  • @SilverMagics well if you think that visual basic is a good language even for new programmers then you know nothing... visual basic is one of the weakest languages and it shouldn't be used especially if you think about doing serious programming later as you'll have to move to more advanced languages and the visual basic has some standards and if you use them you'll develop bad habbits... whatever... My opinion is that the best languagefor begginers is python... or perl... and then C/C++ or C#

  • @SilverMagics css = counter strike source?

    lol just kidding

  • @kelipop each timmer is to show a pic and disable others

  • @kelipop your typing skills is equal to 20%, your mind equals to teenager level, and you're sucking your thumb all the way. If you do tutorial starts with simple....SIMPLE.....SIMPLE...­do babies in 2 months old walk on 2 legs? your boasting you know?

  • @Tomi8886

    LOOOL  HAHA

  • besucht meinen kanal dort gibts videos danke

    visit my chanel thanks

  • sorry. i accidentally clicked Post comment...

    If x = 3 Then

    x = 0 (so it will go back to start and do it again.)

  • dude...im just new with visual basics but i can say that u made a difficult one...you could just make a images with same names but different indexes and go...

    x = x + 1

    imgDisplay.picture = imgImage(x).picture

    If x = 3 ( If you have 3 picture, or the max index number is 3) Then

  • the image you put is that a normal image or a animated image?

  • Nice

  • like this :))

  • dude how to display image using "image" and option button in vb6, i hope you will response.. tnx men...

  • imgName

  • haha, he Sounds like Borat

  • did not work...

  • nice one

  • No, aber ich habe gern apfelstrudel. I am from Holland.

  • @SilverMagics Holland for life, toch?

  • vb8 keeps "saying project creation failed" on mi acer labtop

  • very good tutorial, thx for uploading

  • ohohoh thx :)

  • If PictureBox1.Image = "Image1" then PictureBox1.Image = "Image2"

    If PictureBox1.Image = "Image2" then PictureBox1.Image = "Image3"

    If PictureBox1.Image = "Image3" then PictureBox1.Image = "Image4"

    If PictureBox1.Image = "Image4" then PictureBox1.Image = "Image1"

    Every Tick on a single timer, Easier then using 3 timers and 3 Picture Boxes

  • @Forkoto

    obviously it won't work since this is for visual basic 6.0 lol

  • not working

  • select case picturebox1.image case = "image1" PictureBox1.Image = "Image2" case = "image2" PictureBox1.Image = "Image3" case = "image3" PictureBox1.Image = "Image4" case = "image4" PictureBox1.Image = "Image1"

    end select

    without many if's

  • @zackery2master pwned.

  • @zackery2master It doesn't work so, if you will use this code the VB will give you a run-time error :"Type mismatch" because the .image method is a handle to the image NOT a string !!! My advice is to CONTROL THE CODE before post !

    @SilverMagics the 3 timers are better implemented in one because one timer is one thread think it so, 3 timers 3 threads so the CPU will spend more time even for switching them.

  • why just you dont use animated gif

  • funciono 100 % ok gracias por el aporte  5 start

  • lol

  • what is the deffrent between ( "false" "true" ) what do they do

  • Well, false means no and true means yes. if you want to show somthing, you say object.enabled = false or true

  • thanks

  • Hahaha xD I like your comment? :D

    "True" is like "Yes" and

    "False" is like "No" (:

    Fx:

    If you say "Timer1.enabled = True" Then the timer is enabled.

    If you say "Timer1.enabled = False" Then the timer is not enabled :D

    (Now, don't ask what "enabled" means xD haha)

  • thanks

  • it means that it works...!!! XDXDXD aarg that soooo unprofessional dude use a real animation prog.. do u use windows 95 :o??? XDX ^^lolol

  • who ever rated me -1 has no brain. so what if i asked is that wrong.

  • lol, that was great. Best if statement ever.

  • Yet, still this is a illigal version of Visual Basic.

  • nice example for the beginners..

  • cool

  • Um actually visual basic is completely free

  • Nope, Visual Basic 6.0 is still not a free studio.

  • yeah but 9.0 is free and updated

  • But not as easy, i choose VB6 because it was easy to begin with and learn the basics of every programming language and the rest is just playfull and fun to do.

  • I have also started learning vb by 6.0

  • very cool

  • how many frames can i use?

  • Where can I get VBasic 6.0? Do I have to buy it? If so, where? This is my second year of programmnig, and we're using this and it's a lot of fun so I was just wondering how I could get it at home

  • U could try the Usenet, it worked for me ;-)

  • Look up Visual basic portibal, its visual basic, free, and much much much smaller file.

    I dont think its even i gb.

  • Costs like $600.

  • of course u have to buy it, or u could download it but it´s illeagal

  • Yeah... one problem 10GreenDay01. WHERE.

  • "search dem up"

    Lmfao, faal

  • Did you live in the Stone Age?? This is Version 6. The new Version is 9

  • Can you read the date on the video?? This was in 2007. Now its 2009.

  • still it was old, but i had my reasons to choose vb over 2008 so xD Freak is just trying to be a freakin noob.

  • But 2005 is a noirmal Version, too. And it is older, but not from the Stone Age

  • this vid was made in 2006 not 2009....so of course it it a old version....=3

  • wolfangle93 he could of got visual basic 2005

  • I agree too...Version 6 is simpler and easier to understand than2008

  • @romwell321

    i agree..VB 6 more easier to understand

  • is visual basic the same as visual basic 6

  • ok ganda..malaking tlulong din yan ...nice nice puh

  • pUTA ina ... ALAM ko na Yan

    Dun na NGa KAmeh sa MAy Bouncing Ball EH

    ..BUT nice TUT...

    KEEEP IT UP DUDE....

  • Great job

  • hey

  • '// Use juste One timer and replace all the code by this, its faster ;)

    '// ------------

    Static X As Long: X = X + 1

    If X > 2 Then X = 0

    Picture1.Visible = False

    Picture2.Visible = False

    Picture3.Visible = False

    Select Case X Case 0: Picture1.Visible = True Case 1: Picture2.Visible = True Case 2: Picture3.Visible = True

    End Select

  • Lol

  • wow! eu n vou demorar tudo isso pra criar uma porra dessa!

  • hahaha... its hard to fix when debuging... its too long, can cause confusion... switching enable and visible property.... u can use an loop for repeatitive object motion

  • You could do this with one timer all you would need is a global variable that that counted 1-3 then have a switch/if statement on what pictures should be visible. unless the timers can't be set to continuously repeat code in VB idk never used it but yea I would assume them run forever So much more code would be needed in C/C++ in C++ you have to load the image, apply it to the screen, then update the screen if using SDL its about a page or 2 of code a lot to accomplish something so small

  • its not a simple omg the code is to long if u are writing a bigger app the code would use to much of ur memory, try optimizing ur code.

  • mierdaaaaaaaaaaaaaaaaaaaaaaaaa­aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa­aaaaaaa

  • Nice dude

  • Oh my god, Loooong code, try this: insert 1 timer_control something set the time_control to value interval = 200 , and into the timer_control type:

    For i = 0 To 1000

    Label1.Caption = ">": Cls

    Next i

    For j = 0 To 1000

    Label1.Caption = ">>": Cls

    Next j

    For k = 0 To 1000

    Label1.Caption = ">>>": Cls

    Next k

  • awesome work...

    can you make project when you hit enter 3 three progress bar in form2 will load simultaneously

  • awesome!

  • 6. nill lol

  • ;) THX

    gracias camarada, creeo que esto me servira para un proyecto *o*

  • Lol the beginning "In VB six point dull" Lmao?

  • it's dutch, it means zero

  • okay.

  • hey there, i got a little problem. I want to make a loading bar. I have 13 pictures and 13 timers.

    first i disable all timers except for timer 1. after that comes this code:

    Private Sub Timer2_Timer()

    Picture1.Visible = False

    Picture2.Visible = True

    Timer3.Enabled = True

    Timer2.Enabled = False

    End Sub

    it displays the first picture, but it cant display the 2nd one

  • vb comes with a loading bar , look in the controls =), but if you want you can also make your own like that, you can do alot of things in vb , if you need help just send me a message

  • where did u get those pics from?

  • Made them myself in flash, lol...

  • magic

  • I have a two forms. form2 changes a labels text in form1. If i close the exe file after changed the text, and then open the exe file again, the old text is back what i changed is not there, how do i save it?

  • I think you can't make commands from different forms

  • it really works dude.... i also create an

    loading bar because of this tutorial thank alot men.....

  • nice tutorial Dude!

    but, can you create a Play and Stop button?

    Please post the code

  • yeah, make a checkbox and another if on each timer that will make the timer stop. if unchecked start the timer where it left.

  • i need it for yoville arts

  • make sure the timers arnt enabled then put for start :

    Timer2.Enabled = True

    Timer1.Enabled = True

    Timer3.Enabled = True

    and for stop:

    Timer2.Enabled = False

    Timer1.Enabled = False

    Timer3.Enabled = False

  • ok?

  • Thanks for tut!!!!!

  • Thank you .. You're the man!!!

  • May i say one error? (im doing this tutorial in 2008EE, though) but you say timer2 and timer 3 to false in the main form, i think you should put it to true, anyway in epxress edition 2008 :P, anyway

    thank you very much, just the tutorial needed!, can you make one how to make stuff move? like with wasd, and a pathfinding system? i want to make a tower defence, and need to learn to make a path minions to wzlk on, plase respond or PM me :P

  • A tower defense is not something which is easy to do in vb. I made one and it had aprox 1500 lines of code, And took a few weeks to make.

  • Yeah i also said that to myself, but considering how fast i have learned Visual Basic, i am really liking it, and for me it's better than C++ or any other, so if it takes 1500lines of code, and some weeks, thats Okay :P, but can you help me set up a pathfinding or grid system?, with some timers and so on?

  • get what to work?

    And no never change the "private sub" to something else.

  • nice video