Article View: free.it.visual-basic
Article #3708Re: visualizzazione immagine
From: Esteban
Date: Sun, 05 May 2002 21:32
Date: Sun, 05 May 2002 21:32
42 lines
2708 bytes
2708 bytes
"fabio" <airons@libero.it> ha scritto nel messaggio
news:trgB8.12658$5k4.329013@twister2.libero.it...
> > Private Sub Command1_Click()
> > 'Se il file corrente non � l'ultimo della lista
> > If File1.ListIndex < File1.ListCount - 1 Then
> > 'Spostati al il prossimo file
> > File1.ListIndex = File1.ListIndex + 1
> > Else
> > 'Ricomincia dal primo file
> > File1.ListIndex = 0
> > End If
> > 'Carica il file corrente
> > Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
> > End Sub
>
> Sei eccezzionale, io lo stavo sviluppando immagine per immagine, ci avrei
> messo una vita e sarebbe venuto malissimo..ti chiedo un'altra cosa: per
> tornare indietro basta cambiare il + con il - o devo fare qualche altra
> cosa? invece dei pulsanti posso usare anche un timer?..grazie ancora.
Certo, devi posizionarti sul file precedente nel controllo FileListBox, ma devi
controllare che tu non sia gi� posizionato sul primo file, altrimenti otterresti
un errore:
Private Sub Command2_Click()
'Se il file corrente non � l'ultimo della lista
If File1.ListIndex > 0 Then
'Spostati al file predecente
File1.ListIndex = File1.ListIndex - 1
Else
'Ricomincia dall'ultimo file
File1.ListIndex = File1.ListCount - 1
End If
'Carica il file corrente
Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
End Sub
--
Esteban
Hosted by www.seber.it
(Remove nonspammare for reply)
Technical Details
Message-ID:
<hFgB8.12768$5k4.331091@twister2.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailReferences:
<_RcB8.11746$US3.288928@twister1.libero.it> <rhfB8.12144$5k4.319424@twister2.libero.it> <trgB8.12658$5k4.329013@twister2.libero.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,c3a10b84c5280796 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2002-05-05 13:32:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail From: "Esteban" <esteban_nonspammaresoftware@email.it> Newsgroups: free.it.visual-basic References: <_RcB8.11746$US3.288928@twister1.libero.it> <rhfB8.12144$5k4.319424@twister2.libero.it> <trgB8.12658$5k4.329013@twister2.libero.it> Subject: Re: visualizzazione immagine Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <hFgB8.12768$5k4.331091@twister2.libero.it> Date: Sun, 5 May 2002 22:32:05 +0100 NNTP-Posting-Host: 151.25.5.129 X-Complaints-To: abuse@libero.it X-Trace: twister2.libero.it 1020630733 151.25.5.129 (Sun, 05 May 2002 22:32:13 MET DST) NNTP-Posting-Date: Sun, 05 May 2002 22:32:13 MET DST Organization: [Infostrada]