Call an event

  • Thread starter Thread starter Nicolas
  • Start date Start date
N

Nicolas

I have a timer in a form1 and y have a button in a form2, how can I change
de Timer.Interval attribute from the button on the form2?? (the button pass
a number that is in a textbox)

I try this:
Dim Form as New Form1
Form.Timer.Interval = Me.TextBox.Text

But I can't use this because I have a dataset in the Form1, and it's erase
when I did de New Form1.

Sorry about my poor english!!
 
* "Nicolas said:
I have a timer in a form1 and y have a button in a form2, how can I change
de Timer.Interval attribute from the button on the form2?? (the button pass
a number that is in a textbox)

You will have to pass a reference to form 1 to your instance of form 2.
This can be done by adding a property of the type of form 1 to form 2
and setting this property prior to showing the form.
 
Back
Top