Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Random And Sequential Slide Show


I am having trouble with this random and sequential slide show code, it reads the stored array elements, and creates a slide show with it. Here is the code. Disregard the commented out code.


Private Sub fsequential_Click()
showType = "Sequential"
Timer1.Interval = 5000
End Sub
(the same is for a random button)
Private Sub Timer1_Timer()
If showType = "Sequential" Then
Image1.Picture = LoadPicture(myphotos(i).Location)
i = i + 1
If i > nPhotos Then i = 1
End If
'If showType = "Random" Then
'Image1.Picture = (Rnd * (myphotos(i)))
'End If
' another if block for Random ShowType
'End If
Call Showimage(ind)
End Sub

Sorry for the long post




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Slide Show
I am having trouble making a simple slide show using a timer. I set my interal at a second and set enabled as false till i hit the command. I saved my pictures under a common name (Bpic in JPEG) on my E drive. I think my code to call the pictures is incorect. Any help would be very appreciated. So far my code is this:
Dim counter As Integer

Private Sub Command1_Click()

Timer1.Enabled = True

End Sub


Private Sub Timer1_Timer()

Picture1.Picture = LoadPicture("e:\" & bpic & ".jpg")


counter = counter = 1


End Sub

Slide Show
What is the best way to display pictures as a slide show? I would like the "Windows Picture And Fax Viewer"-style display with all the basic finctions like e-mail, rotate, save as, etc....

Slide Show
Im teaching myself vb, so im really clueless, but would anyone know how to move a img without making it look like a slide show,, it blurs across the screen.... I tried putting the image in a form and moveing the form, but that still makes the img blur,,,, HELP ME STOP THE BLUR ahhhhhhhhh
-thx EdTHeGreat

VB Slide Show
Guys I'm trying to program a slide show using VB 6.0.

I'm using a picture box to dispaly the images and a timer control to to set the interval of the pictures. I also want a vertical scroll bar to adjust the speed at which pictures are displayed.

I know I should probably is a array to accomplish this. I have 10 pictures I want to use for the sildeshow. My problem is i really dont know where to begin.

Any and all help will be greatly appreciated. I am brand new to programming and need all the help I can get.

Thanks,

"pictures or examples of code would be alot of help"

Slide Show
I was wondering if there is a way to display multiple pictures in a single form. I have 24 pictures that I would like the user to be able to scroll through using the arrow keys on the handheld. I want to try and minimize the amount of work I have to do. Does anyone have an idea on how to do this without placing 24 pictureboxes on the form and changing the focus. Example code would be appreciated since I am very new to VB and eMbedded VB.

Slide Show Or Animation
I am going to integrate a slide show or animation type demonstration in a program that i'm making. The demonstration doesn't have to be smooth animations because it's more of a slide show than a smooth animation.

What is the best way to present this? The following is a list that i've thought up. Please choose the best one or give me your idea for the best way in terms of system resources and whether it's hard to do.

Imagebox control and just update with pics
use mediaplayer control to play AVI



Thanks in advance

Making A Slide Show?
How can you make a slide show with a bunch of pictures without having to refer to the file path? Is there a way you can put the pictures in an array of sum sort?

I have cut and pasted a picture into a Picture box control. But I would like to have a bunch of pictures you can view by just clicking a button. Does anybody have any ideas?

I am using jpg files.

Focus Problem During Slide Show Run From VB
This's the situation: there's two form, one is used to display ppt slide and one more is interface to control the ppt slide viewing in the other form. there's no problem to run the ppt slide when focus is set to the ppt form(ei by click on the ppt form). but when user click back on the control form, the ppt slide show stop switching its slide. the ppt will play again when user click back to the ppt displaying form. any i dea to make the ppt to continue switching it slide when user click on other form(when the ppt form lose it focus).

Please Help: Slide Show Model Detection In VBA
Hi, folks:
I wrote a Macro in VBA code which will be repeatedly run when the PowerPoint goes to the slide show model. TO do that I used a Do ... While True loop. But when I exit the slide show model, the macro keeps running and will give a run-time error. Is there any way the VBA code can find the PowerPoint has exit the slide show model? Thanks a lot!
Gang

Is There A Way To Tell When A PowerPoint Slide Show Actually Starts?
I’m using the following code to run a large PP slide show. There is a finite amount of time between when the program gives the command to start and when the show actually starts (2-3 minutes in my case) I would like to play some background music during this time. Is there a variable that I could monitor to determine when the show actually starts? Or maybe some other method of doing slide shows with VB that would give me that capability.
VB Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)Private Const RPC_E_CALL_REJECTED = &H80010001 Sub RunSlideShow(ByVal S As String)    Dim PPT As Object    Dim Pres As Object    Dim SSW As Object    Dim State As Long     On Error Resume Next     Set PPT = CreateObject("PowerPoint.Application")    Set Pres = PPT.Presentations.Open(S, False, False, False)    Set SSW = Pres.SlideShowWindow    If SSW Is Nothing Then        Set SSW = Pres.SlideShowSettings.Run    End If     State = SSW.View.State    Err.Clear    Do While (Err.Number = RPC_E_CALL_REJECTED) Or (Err.Number = 0)        DoEvents        Sleep 1000        State = SSW.View.State    Loop     Pres.Close    PPT.Quit     Set Pres = Nothing    Set PPT = NothingEnd Sub

Playing A Powerpoint Slide Show. --
Is there a control out there for free which will play powerpoint slide shows? Ideally with the ability to control the show aswell.
This isn't really my area of expertise so I'd be gald if anyone can help me out.

Thanx

Slide Show Opinions ??? [RSLVD]
I have a program that will flip though images...

I have it using an array of images and then Zorder them
to the top... but it gets a bit glitchy if you know what I mean...
I see some other frame show or something right before
the new image goes to the top...


would it be better to do show and hides ?

anyone know of a method that makes it look clean ?

just looking for peoples past exp...

PowerPoint Slide Show Capture
Hi, I am trying to capture the forward and backward events of a PowerPoint Slide show.

NOTE: I am using a mouse connected to my computer (Windows 2000) through USB port.

Any suggestion/help is greatly appreciated.
Thanks alot,
-PG

Calendar/Organiser/Slide Show Program
How would I build in VB6 the following programs?:
Calendar/Organiser/Slide Show program
a MP3 Player

How To Create A Slide Show With Pics From A Folder
Hi,

What I want to do is have my aplication to scan a folder, get all the images that are in it and display them on a picturebox, and as the user presses the Left and Right Arrows, it will run through the pictures (like the Picture Viewer in WINXP). When the user presses the right arrow, it will go forward, left will go back the list.

How do I do it??

Thanks,

Herick

Powerpont Slide Show In Visual Basic.NET
Hi,
I am a novice with Visual Basic. I have created a form in VB with previous and next buttons. Now I would like to display a powerpoint presentation on my form with the ability to navigate between slides using the previoud and next buttons I've created on my form. Can anyone help me with this?
Thanks in advance.

Delay Starting Slide Show In Powerpoint
I use pcAnywhere to remotely control another computer running a Powerpoint presentation 24/7. When I disconnect the pcAnywhere, it turns off the Powerpoint presentation as well.

Powerpoint uses macros which uses visual basic.

I want to be able to activate the macro, which will turn on the presentation. I need to have enough time to disconnect the pcAnywhere program. I need a delay of about 15 seconds or so.

Sub StartShow()
'
' Macro recorded 2/19/2007 by DHW
'

With ActivePresentation.SlideShowSettings
.ShowType = ppShowTypeSpeaker
.LoopUntilStopped = msoTrue
.ShowWithNarration = msoFalse
.ShowWithAnimation = msoTrue
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.PointerColor.SchemeColor = ppForeground
.Run
End With
SlideShowWindows(Index:=1).View.PointerType = ppSlideShowPointerAlwaysHidden

End Sub

Any ideas?

triumphguy

Looking For Suggestions On A Simple Slide Show Program I Wrote
I created this slide show program last year, but over the last couple days I started updating some of the features and fixing some problems with it.

I'd like to hear some of your opinions on it. Let me know if you find any problems with it. If you think that a new feature should be added then let me know and I will see if I can integrate it.

I just spent the last hour adding comments to it. If you see any of the code and want to copy it then go right ahead. Not that any of it is that great. If there is something that I do in the code that is horrible or inefficient then tell me and I will fix it.

Thanks.

PcAnywhere Turns Off Powerpoint Slide Show Upon Disconnect
My idea didn't work after all. A script was developed that tells
Powerpoint to run a slideshow 15 seconds after it is told to
run. This would allow time to "disconnect" pcAnywhere, with the
hopes that the slideshow would not stop running as well. The
slideshow ends up running, but not in full screen mode.

Something else has to be developed. Such as a script that when
started opens up Powerpoint, then the file, then starts the
slideshow, then makes adjustments in the settings. This must be
possible.

Can anyone come up with a way to do this?

Starting A Slide Show As The File Opens.. Vba Powerpoint
Im new here and wondering if anyone could help me out. I'm familiar with VBA in excel, but I am using it on PowerPoint for the first time. I wanted to know if it is possible to have a slide show start when the file is opened, so that say a user wouldn't have to go to Slide Show>View Show. any suggestions would be very helpful... thank you

kevin

Random Or Sequential??
Hi there,
My program writes a list of URL's to a file and then retrieves them every time my program starts. My program then populates the URL's into a listbox.

Am I best using random or sequential file access??

Many thanks

Jordan

Random Or Sequential
which is faster? better?

i figured random access was better because you could reference an item by its position in a file-- read and write over that position. but you lose the ability to compact the file down-- like in sequential everything is just one long string-- with random if i dont give it a length the line is padded with spaces or whatever-- i mean is there a way to make random access files more efficient? like is there an issue with me writing a sting *5 and then replacing that string with a string*8 for example? the problem is not all strings will be the same length..

i guess im just looking for some direction with this issue.. lol if i made any sense at all..hehe

A File Random Or Sequential??
Hi People,

I need to pick your brains, I am designing a program at the moment and i'm a little stuck, I am a newbie to Visual Basic 6.

I have a file which looks a little like this:

15/03/2003,47,28,4,25,38,24,11
12/03/2003,33,16,6,37,40,41,25
08/03/2003,32,5,8,6,33,41,15
05/03/2003,23,8,3,34,46,12,24
01/03/2003,29,31,45,44,22,24,35
26/02/2003,38,5,40,34,18,45,22
22/02/2003,30,19,42,33,38,44,31
19/02/2003,35,10,1,4,28,17,32
15/02/2003,32,4,20,48,49,44,27
12/02/2003,35,18,17,12,30,20,49

As you can see each line has commonalities, i.e. the first part is always a date, then 7 random numbers. What I need to do, is i need to know how i can access this file and write to it, in a form of some kind, I need to see what data is already present in the file.

Any ideas.

Sequential File To Random
i have a sequential file, but i want to convert to random file by the key id cin$, but when i run the program the file have all garbage, please help me, this is the code program. Thanks.


Private Type records
cinta As String * 6
fe As String * 8
sc As String * 8
su As String * 3
ye As String * 2
descripcion As String * 30
nuci As String * 1
ar As String * 1
se As String * 6
last As String * 8
End Type
Private Sub Command1_Click()
Dim myrec As records

Open "c:qbasiciblio3.txt" For Input As #1
sta:
If EOF(1) Then GoTo finpre
Line Input #1, x$
Let P = P + 1
GoTo sta
finpre:
Print P
Close #1
Open "c:qbasiciblio3.txt" For Input As #1 ***seque..file
Open "c:qbasic
antest.txt" For Random As #2 Len = Len(myrec)
'LSet f = Chr$(255)
'For i = 1 To P
'Put #2, i, myrec
'Next i
Rem LET x = x + 1

lee:
If EOF(1) Then GoTo fin11
Input #1, cin$, fech$, scra$, subs$, yy$, descr$, numcin$, area$, see$, lasttrx$
Let xx = xx + 1
'Let yet = cin$
rtn1:
Let cinta = cin$
Let fe = fech$
Let sc = scra$
Let su = subs$
Let ye = yy$
Let descripcion = descr$
Let nuci = numcin$
Let ar = area$
Let se = see$
Let last = lasttrx$
Put #2, xx, myrec
Debug.Print myrec.descripcion
GoTo lee
fin11:
Print xx
Close #1
Close #2
Print xx
'*********************************************************************
End
End Sub

Random Or Sequential-access Files?
Well, I am in the long process of making a chat program and I have a server and a client. The server will have a list of all the registered users and certain info about them, such as: name, password, ip, local host name, etc. Every time that someone new registers I want the info to be added to the end of the file. And when I start the server, I want to load all the info onto a list. But here is where I am stuck. Should I use random-access files or sequential-access files? With random access, I could just load each record and put it in the list with the split command and what not, but when I load each record and I make my For loop, what number do I go to, how do I know how many records there are in the file? Thanks for any help...

Searching A File - Binary, Random, Sequential?
I've got a project to do and I need to search through files. I've done this a few times before, so I know how it works with text files, but the file I'm working with is not a text file.

Although I can open the file with notepad, and see the text that I need to extract, I still can't get to it through VB. The text I need to extract is mixed in with various symbols like below:

^%*((%#^images/astro/pack_in.jpg!#$$%*(

The problem is that the symbols above are still text symbols, but the symbols in the actual file cannot even be copied and pasted here.

I'm hope I'm making sense here, and that someone can help me out.

Thanks,
Hicks

Converting From Sequential To Random Using An Access Database
Ok, here's my migraine, I've done the coding to this application to access sequential files, I'm further down the road on my course and I have been given a pre-designed access database incorporating all the sequential .DAT files, I've gone through my books and over examples and I still can't grasp the conversion process. Does anyone know of any sites out there that might be able to help me? or maybe a tutorial? I could even attach the files (its a small app) if that might benefit me. I just desperately need understanding on converting all the WRITE, READ, INPUT into ADO style commands.


Thank you
Mav49

Need Help - How To Show Random Text
Hi all, good day!

I have a problem with vb6. I need to show random text in a lable or text box. that means, If command1 button click text box show another text from predefined text list. this must show when program start also. I mean,

ex: If user open once it display "Hello" after that he open the program in next time it will display "Howdy" etc.

Random text is must in the program like

Hello
Howdy
LOL

I am so confusing of this. Please some one help me. I am a new comer to vb6. I need your help please.

Thanks & Have a Nice day!
gymamal

Show Random Pictures In A Form
I, first at all, excuse me for my bad english.
I'm doing a quiz game, and every time a load a form, called frmplayer1, i want the imgplayer1 show random from a folder with various gif's.

Example: the form of 1 player load and my character is a doctor. But i have a folder with other images (gif). I want the game choose random my character.

Thanks.

Show Random Stored Number
I have a button and a text box, I want it so when they click the button one of the group of numbers I have stored in it will show.

So lets say I have theese numbers as an example: 32154, 76783 and 11215, I click the button and than the number 76783 comes up, so I click the button again and I get 32154 I click again and I get 11215 and I click again and I get 32154 again since it only has those 3 groups.

I was thinkin maybe variables? and sum how set it to randomly show? I dont know howto exactly, I am sure it has been done before though.

Sequential File To Random File
hello everyone. I'm a newbie and need some guidance. I have a sequential file that I need to convert to Random file. Any ideas?

My plan so far... is to read the records in sequential file into a listbox, "OPEN" the random file and then "Put" the info in the listbox into the random file. The problem I have is not being able to get the record in the listbox into the random file.

Thanks ahead for any help.

Kinda Stuck... {show Random Text From List}
Hey guys im kinda stuck. I am trying to make a random insulter in Visual Basic 6.0 and i want it to be able to say a difforent insult out of the 100 that i put into the code every time i click the command button. I want the insult to come up in a text box.

I hope you guys can help me.

Thankyou.

Two Q's - Changing Tab Order && Getting A Random Variable To Show Up At Another Text B
1. I have 20 text boxes.. they are each named p1-p20. How can I make it so the tab order goes through them in order (1-20)?

2. I have this code:

When I press a button (pickwinner) I want the text inputted in one of the twenty text boxes that I have (p1-p20) to display in the text box called winner.text.. How can I do this? Thanks!

Random Refresh Of Drawing Surface Causes Background Color To Show
I'm using directdraw7 to display my game. I'm having an issue when the game is windowed.

My render chain works like this: back buffer->front buffer (associated with picturebox)

I've just noticed that occasionally - say, once every ten seconds, the picturebox that I'm blitting to will 'refresh' and re-paint itself... displaying the background color that is normally behind the game graphics.

Is there a way to stop this from happening?

Alternatively, I suppose I could use the BltToDC function, and draw directly from the back buffer to the picturebox... is this slower than the normal process?

Slide Bar
Is there some kind of equivalence to a slide bar in VB 6? I'm trying to zoom in on a graph that's in a picturebox and it needs to be periodic, not at all once. thanx.

Slide Bar
Could ne one help me i need to get a Slide Bar (size 20 ticks) to make an Image Change on each tick!! ive got 20 images could anyone help me!!!

Slide .
is there a way to make the form slide out from the screen. for instance if i put my mouse top the left edge of the screen a form will slide out, and when i take my mouse off it goes back in, kinda like the microsoft office shortcut bar?

Slide Bar
I am trying to utilize the Microsoft slide control. I want to have a textbox reflect the change at the same time the value changes. I have tried the event onupdate and nothing happens. How can I do this?

Thank you

Changing Slide
This may seem like a simple question, but I am having problem when using VBA in powerpoint. I have a command button on a slide, and I desperately need it to go to another slide when it is pressed. Any ideas?

Thanks

Getting To The Next Slide In PowerPoint
I have seen several instances of code that allows you to advance to the next slide in PowerPoint, but all of these instances require that you be in Slide Show mode. I am looking for a way to advance to the next slide while outside of the slide show so I can then have visual basic delete and modify objects on the next page, which doesn't work if you are viewing the slide show. Any help would be appreciated.

Thanks

Insert Slide
Maybe a stupid question but how can i add a slide after a present slide in powerpoint with VBA?

Mouse Slide
Is there a way that when you press the left or right mouse button that your cursor slides down the screen.

Slide Menu
Ok well i tryed this in the .net section but no one knew so i think ill try it here

OK in .net and officeXP the tools menu slideds in and out the buttons move up and down to show the dif tools anyone know how i can do this ??

Slide Form
Hi all,
How I do to slide a form in a screen?
As the start menu in windows?
I need to put a command button, and when it's clicked, a form apears sliding, as a start menu....

Slide Effect
Using a timer control and a text box control, how could I create a slide effect for text shown in the text box, similar to the <marquee> effect in HTML.

Actual code would be good.

At the moment I am using the Mid() function with an integer, that tracks the leading character each time, the timer runs.

Code To Go To Next Slide
Does anyone know the code I could add to a command button to move to the next slide in power point?

e.g/
After entering data off in a form in slide 4, pressing commandbutton_8 and being able to enter the dat into slide 5 then.

Any help appreciated as I am fairly new to code.

Tim

Wingeronside@hotmail.com

Add A Slide Module To The VBE With VBA
I would like to be able to programmatically create a PowerPoint Slide object in the Visual Basic Environment. Since this code will need to reside within or be activated by the slide, I would like to know how to programmatically add a Slide Module to the Visual Basic Editor. I already know how to add code to an already existing Slide Module from a remote application, but not how to add the actual Module. I thought that by adding a new slide the corresponding code module would be created. Below is the code I use to add code from another application. Trying to use the Add method ends with no results; no error or Slide Code page.

Code:
objPPTApp.VBE.VBProjects("PPTWeb").VBComponents(1).CodeModule.InsertLines(1, strCode)



 

Slide Editor In VB
Hi, I'm Victor Chew from Malaysia that i'm taking a project that need to create a slide editor in VB. The slide editor is just like the Microsoft Power Point that can let user create and edit their works as a slide.

Anyone there can help me please, Thank you very much.

regards,
Victorchew
victorchew@catcha.com

Button Slide
hi


i had desighned a form with a single command button my objective is that

the button ..at run time the mouse pointer focus should not be able to reach the button


ie.. if i place mouse pointer on the button.. button should slide of randomly all over the form so that i should not be able to click that button at all


can some one help me over this problem


regards

Nike

Copyright © 2005-08 www.BigResource.com, All rights reserved