Jump to content

whats wrong with my code?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
wygz

wygz

    Newbie

  • Members
  • Pip
  • 6 posts
private sub form1_load()

frame1.height = 200

end sub
____________________________

Quote

private sub timer1_timer()
timer1.interval = 1000
end sub
________________________

private sub button1_click()

while frame1.height <= 3465

timer1.enabled = true

frame1.height = int(frame1.height) + 50

wend

end sub

// my intintions with this code that when i click the button the frame's height will increase up to the desired size in time duration... but with my code, their is no action, or no reaction that trigger when i click the button. Pls anyone can help me with this, pls debug my code...Thanks!

#2
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well I tested this code in VB 6.0, and it worked perfectly. The frame size increased.

#3
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
it works greate i dont know what could be wrong :S

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Are you trying to run that code in visual basic .NET?

#5
wygz

wygz

    Newbie

  • Members
  • Pip
  • 6 posts
try it again, and it works. thnk guys! Im using vb6....

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
That's ultra funny. Should have worked from the first time.