Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dimentioning(dim) Question

Status
Not open for further replies.

uprocker2

Programmer
Dec 26, 2004
34
0
0
BE
Picturebox = image1
timer = timer1 (timer1.interval = 10)
I've got this code:
Code:
Private Sub Timer1_Timer()
Image1.Height = Image1.Height + 20
Image1.Width = Image1.Width + 20
Image1.Stretch = True
End Sub
when I run the program, the picture start to enlarge.
Now the problem is: it get verry weard noiced over the picture when it gets bigger and bigger.
I Suspect that this is couse it enlarges verry fast.
How can I solv this problem?
Does Dimention(dim) help in this case?
What do I have to dim if it does?
[link]www.geocities.com/trashhunters/Project.zip[/url] is an example so you can understand better(VB6.0).

sign05.GIF
sign05.GIF
sign05.GIF
Uprocker2
sign06.gif
sign06.gif
sign06.gif
 
uprocker2

If you want to slow it down then increase Timer1.Interval. It is 0.001 sec now in your project (Timer1.Interval = 1). Set it to 1 sec: Timer1.Interval = 1000 to estimate the result.

You may remove this line : Image1.Stretch = True. It is implemented 1000 times a second with no need. You have it set in the properties of your image already.

What do you want to Dim if you have no variables?


vladk

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top