Results 1 to 3 of 3

Thread: Help with timer control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2009
    Posts
    177

    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

  2. #2
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2009
    Posts
    177

    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
  •  



Click Here to Expand Forum to Full Width