| | i was just wondering, when you are useing the program Visual Basic is there any way to add some animation to a form, and if so what is a good(cheep) animation program i could get? |
| Nov 8, 2009 |
I am going to be learning VB next year so I'll need to pay attention to this for some good pointers.
Refer to following articles for more information:
As far as I know, you can create an animated gif image or flash file then embed them into VB form. Here is one of many tutorials on the net http://www.anim-fx.com/flash-tutorials/insertvb6.html Heheheh. This is easy. Very easy. Quick Solutions In VB6, you just need the default controls. Importantly, the Image control (not picture control using that would kill the cpu) and a Timer control. Prepare the slides of the animation. You could do this by taking frame by frame shots of a movie, gif animation, etc. Best way to experiment is with... STICK FIGURES!!! (fine, be Van Goh if you want. But you'll die at frame 3) Rename the frames from 1 to say 32 same file extentions (say .bmp) put it in a folder called Animation1/ Then, create one image control (I hereby declare this control by its default name, Image1). Next, add the Timer Control (blah blah blah as above, Timer1) Set the timer's interval. This will become the the animation's frame interval. Set the timer's enabled to false if you want to pause it, set to true for resuming. Then add this nifty code to the same form as the controls: CODE Dim ImgCounter as Integer 'Use Long if you plan to make a movie out of this' Private Const AniMax as Integer = 33 'Change the number if you like (last frame + 1)' Private sub Timer1_Timer() ImgCounter = ImgCounter + 1 Image1.Picture = LoadPicture(App.Path & "/Animation1/" & Trim(Str(ImgCounter)) & ".bmp" 'change file extention if necessary') If ImgCounter = AniMax Then ImgCounter = 0 'Not 1 or else the next time this function repeats, it'll skip frame 1' End If End Sub Public Function Frame_GoTo(iFrame as Integer) If iFrame < AniMax And iFrame > 0 Then ImgCounter = iFrame Image1.Picture = LoadPicture(App.Path & "/Animation1/" & Trim(Str(ImgCounter)) & ".bmp") End If End Function There. With the extra function you can go to any frame within the range by calling it up. You do this by entering the code: Frame_GoTo('frame no.') Ta da! The simple animation ready to roll. Second Alternative: Create a .avi, .mpeg or .mp4 file and embed it with the program. Instant animaiton. Eats the RAM though, so be careful.
QUOTE As far as I know, you can create an animated gif image or flash file then embed them into VB form. the visual studio 2005 professional version comes with animations that have to be installed as a optional item. They include all of the animations that were used in earlier versions of windows and include ones like the file copy dialog, file delete, upload to ftp, download files et etc. They are pretty simple but it that is something you are looking for, they can be useful. because they are so large i cannot post them here on the board, but i will try and put them up on my astahost site. ill reply again when they are up! the zipped version is rather large (2.03MB) so be warned! also, since you can embed almost any gif animation into a vb form then any animated gif that you come across on the internet you could possibly use. There are many sites (i wont list them now, but do some googling and you'll find some) that give away animations for royalty-free use. but remember, the more animations and pictures that you add to your forms, the slower the form is going to become to load which will in effect slow down your entire application, so use wisely! good luck -jimmy
where is my mistake?
Visual Basic Help I'm trying to complete this code and I'm getting the code from the book. The code is: Private Sub Form_Load() ' Initialize the label's text Dim strLabel1 As String Dim strLabel2 As String Dim StrLabel3 As String Dim StrLabel4 As String StrLabel1 = "use frames if you want" StrLabel2 = " to group options together" StrLabel3 = " Each frame forms one set" StrLabel4 = " of option buttons" LblFrames.Caption= strLabel1&strLabel2&strLabel3&strLabel4 End Sub Now the problem is with the last line , it didn't accept the ampersand after every string name . If you can help with that , please reply. Thank you -question by new student where is my mistake? Visual Basic Help I'm trying to complete this code and I'm getting the code from the book. The code is: Private Sub Form_Load() ' Initialize the label's text Dim strLabel1 As String Dim strLabel2 As String Dim StrLabel3 As String Dim StrLabel4 As String StrLabel1 = "use frames if you want" StrLabel2 = " to group options together" StrLabel3 = " Each frame forms one set" StrLabel4 = " of option buttons" LblFrames.Caption= strLabel1&strLabel2&strLabel3&strLabel4 End Sub Now the problem is with the last line , it didn't accept the ampersand after every string name . If you can help with that , please reply. Thank you -question by new student The solution is very simple, just add spaces between the string names and the & signs, like this: LblFrames.Caption = strLabel1 & strLabel2 & strLabel3 & strLabel4
how can i chang extention to each other ? for example how a program written bye vb can convert a gif file to jpg, or other ? this is project for my teacher i have to done.
Visual Basic, Run-time error
Visual Basic Help Visual Basic, Run-time error '-1 (ffffffff) ' ENGLISH History: 1) A program that I developed with VB6 runs perfectly in my old computer in programing way and in executable way, with a Pentium(are) 4 CPU 1,6 GHz, Window XP. 2) Now I have a new computer with Intel Core(TM) 2D core, E7300 2,66 GHz, Window XP, when running the program in program way it works during one time but suddenly he gives the suitable error, Run-time error ` -1 (ffffffff) ' and the strange is that when requesting help the system doesn't respond and I have to cancel it. Nevertheless if I work on my new PC with the executable (*.Exe) of the same program this works and doesn't give error ESPAÑOL Historia 1)Un programa que desarrollè con VB6 corre perfectamente en mi vieja computadora en modo de programaciòand y en modo ejecutable, con un Pentium(are) 4 CPU 1,6 GHz, Window XP. 2) Ahora tengo una nueva computadora con Intel Core(TM) 2D core, E7300 2,66 GHz. Window XP, al correr el programa en modo de programaciòand, èste trabaja durante un tiempo pero repentinamente the el error indicado, Rin-time error `-1 (ffffffff)' y lo màs extraño es que al solicitar ayuda el sistema no responde y tengo que cancelarlo. No obstante si trabajo en mi nueva PC con el ejecutable del mismo programa este trabaja bièand y no the error. -reply by Ernesto Gramcko
Similar Topics
Keywords : visual, basic, useing, visual, basic
Using Visual Basic 2005 Express (8) Hi, does anyone know how to delete a registry key/subkey using VB 2005 Express. Also, if any other Making a scoreboard with Visual Basic 6 (0) Hi again, I've done another visual basic tutorial in this forum on how to make a simple, (3) This quick guide shows you how to fix this error. Step 1): Go to your control list by right (8) Heya folks, i am back again with my annoying questions /wink.gif" style="vertical-align:middle" Need resources (5) I have just downloaded Microsoft Visual Basic Express 2005 and I need a tutorial to help me learn Needing info on a free VB.net IDE if avaliable (4) I know that VB.net is proprietry to Microsoft /sad.gif" style="vertical-align:middle" emoid=":(" (8) I have a project to submit this wednesday, and i have to make it a working program. Not a big one .. (1) i dunno if all of u are by now well versed with the new exciting features in visual studio 2005 Visual Basic Variabe Names (11) In Visual Basic, what is the difference between: ResourceName ResourceName$ ResourceName& .... how to distribute (8) I have made a software with Visual Basic 6 and Crystal Reprots 9. Now I have to distribute it on the (11) This article will teach you how to get random strings for output to a label caption, or anywhere you Windows XP ONLY (17) Personally, I love this program I made for myself. What the following code will allow you to do is (1) What many of us do not know is that using a button on a form with the function "Unload Form1" or (6) This tutorial will go over how to effectively use the Replace function in Visual Basic. 1. So (0) Hi all, I found a very good site at MS which offers 101 short movie clips to strenghten various (6) for example, Dim array() as integer during run time, how to confirm a array is null (do not written entierly by me (1) if you want to know how to make dlls in visual basic, download my submission to Looking for visual, basic, useing, visual, basic
|
![]() Visual Basic Help - need help useing visual basic |
Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com