Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Changing pictures using a scroll bar
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Universal




PostPosted: Thu May 05, 2005 12:41 pm   Post subject: Changing pictures using a scroll bar

I got a problem and that is when I use the scroll bar to change the scroll (move that button on it) it wont show another image in the picture box. Is there a way to fix this.

here is the code i have :

code:
Private Sub scrlTANKS_Change()
If scrlTANKS.LargeChange = 2 Then
picTANKS.Picture = LoadPicture("C:\windows\desktop\m60.jpg")
End If

End Sub


PLEASE HELP



new-1.jpg
 Description:
 Filesize:  262.61 KB
 Viewed:  2137 Time(s)

new-1.jpg


Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: Sun May 08, 2005 1:02 pm   Post subject: Re: Changing pictures using a scroll bar

scrlTANKS.Value is the current position of the scroll bar, and it will always stay between scrlTANKS.Min and scrlTANKS.Max.

The amount of change is determined by scrlTANKS.LargeChange when you click in the scroll bar, and by scrlTANKS.SmallChange when you click on the arrow.
Universal




PostPosted: Thu May 12, 2005 8:42 am   Post subject: (No subject)

Ah I dont need that help naymore I found another way to by pass it.
Ooh I recovered some of my game files and have started on my alpha version.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: