|
-
Aug 27th, 2001, 02:13 AM
#1
Thread Starter
Retired VBF Adm1nistrator
You're not being very precise here.
So I'll assume this is what you're looking for :
VB Code:
Option Explicit
Private Sub Form_Load()
Picture1.Picture = LoadPicture("c:\jamie\carlos1.jpg")
Picture1.Picture = LoadPicture("c:\jamie\katie and pippa .jpg")
Picture1.Picture = LoadPicture("c:\jamie\desktop.jpg")
End Sub
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Aug 27th, 2001, 12:05 PM
#2
Frenzied Member
Nope, I think that's not what he wants 
Here's some code to switch two images. I'll assume picTemp is a blank image (invisible!) that we can use in our function 
VB Code:
Private Sub SwitchPictures(Pic1 As PictureBox, Pic2 As PictureBox)
picTemp.Picture = Pic1.Picture
Pic1.Picture = Pic2.Picture
Pic2.Picture = picTemp.Picture
End Sub
Ok, put this somewhere in your form. To switch 2 pictureboxes, lets say, Picture6 and Picture11, you'd use this: SwitchPictures Picture6, Picture11
That should work
Last edited by Jotaf98; Aug 27th, 2001 at 12:15 PM.
-
Aug 28th, 2001, 02:05 AM
#3
Thread Starter
Retired VBF Adm1nistrator
Could have been looking for my code tho
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Aug 28th, 2001, 11:02 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|