|
-
May 10th, 2009, 12:16 AM
#1
Thread Starter
Addicted Member
Help with timer control
Hi, Can any one help me with this code. What Iam trying to do is set the shape hight property to the value in a msflexgrid cell. I want the Timer to set a new value for each value in a grid so the shape Hight will be moving acording to the value of each cell. here is the code that Iam using to acomplish this.
Code:
Private Sub Timer1_Timer()
Dim x As Integer
Picture3.Scale (0, 195)-(5, 265)
x = 0
On Error Resume Next
Shape3.Height = Grid1.TextMatrix(1 + x, 4)
End Sub
-
May 10th, 2009, 01:36 AM
#2
Fanatic Member
Re: Help with timer control
why u r useing timer for this thing ?
how is ur flexgrid cell value changing ?
can u call this above code on change of cell value ?
WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST 
-
May 10th, 2009, 07:45 AM
#3
Thread Starter
Addicted Member
Re: Help with timer control
Tnks for the reply. All I want to Acomplish is to have a Picturebox with a Square shape in it, and I want that shape to animate Up Or down acording to to value of the flexgrid cells in a particular row ,starting with the first cell. This will help visualize the the resulst dynamicly.
The reson I use the timer is because the timer will show one value of a cell each time interval
and i could adjust this manualy.
the values of the flexgrid are enter manualy. and it range from 195 to 265.
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
|