Hi ,
I already created a button "enjoy button" that i want to move in a form when the "timer start button" is clicked.
how do link the timer to the
"timer start button" and make it move?
this is what i tried so far..then am blank
first
Code:
Public Class MainForm
Dim DX As Integer
Dim DY As Integer
Dim X As Integer
Dim Y As Integer
Dim Counter As Double
Dim Y1 As Integer
Dim Y2 As Integer
Dim X1 As Integer
Dim X2 As Integer
then
Code:
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Me.xTimer.Enabled = False
xTimer.Interval = 10
DX = 1
xDXTextBox.Text = DX
DY = 1
xDYTextBox.Text = DY
Counter = 1000
xCounterTextBox.Text = Counter
X = 216
Y = 135
Me.xButtonLabel.Text = "Button(" & X & ", " & Y & ")"
then
Code:
Private Sub TimeStartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xTimeStartButton.Click
Me.xTimer.Enabled = True