473,379 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

need help with making a slideshow

I've started to set up a slideshow but i'm unsure about coding. Is there anyone that could help me?
I want to use something to show images in a certain time period.
Any help would be appreciated.
Jan 14 '07 #1
7 2439
Killer42
8,435 Expert 8TB
I've started to set up a slideshow but i'm unsure about coding. Is there anyone that could help me?
I want to use something to show images in a certain time period.
Any help would be appreciated.
Could you give us some idea as to what you've done so far? I think we need more detail on what it is in VB that you need help with.

I expect a timer control will be involved somewhere in the "time period" thing. It might be a good idea to tell us what version of VB you're using, too.
Jan 15 '07 #2
I'm using visual basic 6 and i want to display several images and i want them to be in a sequence. eg: the first pic will be shown and then about 4 seconds later the next pic will be shown and so on.
I think i need to use the timer control to do this and probably a picture box, but i don't know really any code that can help me.
Jan 15 '07 #3
Killer42
8,435 Expert 8TB
I'm using visual basic 6 and i want to display several images and i want them to be in a sequence. eg: the first pic will be shown and then about 4 seconds later the next pic will be shown and so on.
I think i need to use the timer control to do this and probably a picture box, but i don't know really any code that can help me.
The actual code involved should be quite simple. Just set the timer control to fire every four seconds. In the event code which is triggered, set the .Picture property of the picture box control to the next picture in your sequence, using the LoadPicture( ) function.

Sounds as though you need to spend some time reading, and playing around with these controls, to get a feel for how they work. Feel free to post here with specific questions if you get stuck - we love to help out. But you won't find many people willing to just do the job for you.
Jan 15 '07 #4
Thanks, i'll give it a go
Jan 15 '07 #5
Killer42
8,435 Expert 8TB
Thanks, i'll give it a go
Good luck! :)

Let us know how it turns out.
Jan 15 '07 #6
I can get one picture to appear in a image control once i click the command button in runtime, but how can i get the other pictures to appear after? Do you have to create multiple image controls so they overlap over the other image?

Could you let me know how i should do this
Jan 15 '07 #7
Killer42
8,435 Expert 8TB
I can get one picture to appear in a image control once i click the command button in runtime, but how can i get the other pictures to appear after? Do you have to create multiple image controls so they overlap over the other image?

Could you let me know how i should do this
Don't forget there are both PictureBox and Image controls. I don't know which is more appropriate for your situation. Generally speaking, it's better to use an Image control if you can (they use less resources), or a Picturebox if you must (it has extra functionality).

To show a series of images you could either load each of them in turn into a single control, or load them all into separate controls. In the latter case you could do a number of things to control which is visible, including (but probably not limited to)...
  • Move them on and off the form as needed. For example, if you move something to negative coordinates (Eg. Image1.Move -50,-50) this will put it above and/or to the left of the visible window. It "exists" but you can't see it (unless it's big enough to overlap the visible area, of course). You can also move it far enough right or down to be off the visible window.
  • Turn their .Visible property on and off as needed.
  • Use Zorder to move them in front of or behind each other, or some other control(s).
Is that enough ideas to start with?

Note, if you haven't already, I would definitely recommend you look into using control arrays. Like an ordinary array of variables, they are much more convenient to process than individual controls with different names.
Jan 15 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Patrick Fitzgerald | last post by:
I have a GNU licensed Javascript slideshow script: http://slideshow.barelyfitz.com/ Recently some users have complained about problems in Mac IE; unfortunately I don't have a Mac system that I...
16
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed...
2
by: George | last post by:
Hi, The code below comes directly from http://www.dynamicdrive.com. It does exactly half of what I'd like it to do. The other half is this: I'd like the image block of the changing images to...
1
by: David. E. Goble | last post by:
Hi all; I have the following files; index.html, sigsheader.js, sigsboby.js, smilesbody.js and smiles.js. The sourse is below. The page displays two manual slide shows... Each slideshow has a set...
7
by: David. E. Goble | last post by:
Hi all; I have the following files; index.html, sigsheader.js, sigsboby.js, smilesbody.js and smiles.js. The sourse is below. The page displays two manual slide shows... Each slideshow has a set...
10
by: Anthony | last post by:
I am using the following code to display fading pictures on a team website. Can someone show me how to modify it such that I can display the names of each employee when the picture changes? This...
2
helimeef
by: helimeef | last post by:
Hiya, I'm upgrading a this slideshow to Object Oriented code (so I can reuse it for other clients), and I'm having some problems getting the library to work. Here is what it's like so far:...
3
by: Gaby Sandoval | last post by:
I have a very simple javascript slideshow. It is extremely basic (see small sample below): <script language="JavaScript1.1"> <!-- //specify interval between slide (in mili seconds) var...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.