Timer Question???

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

I'm using VB .NET 2003 and I cant figure out how to do this, I have a
windows application with 2 Forms and a Timer the Timer is on Form1, I also
have a Button on Form2, I want to click Button1 located on Form2 an have the
Button1_Click event perform Timer1 functions, for example; Button1_Click
....... Timer1.Enabled = False, sounds simple enough but I cant get Form2 to
inherit Form1's Timer component, I tried it a few different ways but I'm
stuck, I can get Form2 to inherit other components like Labels and Textboxes
but I cant get it to inherit he Timer component.
Anyone know how to???
Do you even have to inherit the Timer to do this???
 
* "Ken said:
I'm using VB .NET 2003 and I cant figure out how to do this, I have a
windows application with 2 Forms and a Timer the Timer is on Form1, I also
have a Button on Form2, I want to click Button1 located on Form2 an have the
Button1_Click event perform Timer1 functions, for example; Button1_Click
...... Timer1.Enabled = False, sounds simple enough but I cant get Form2 to
inherit Form1's Timer component, I tried it a few different ways but I'm
stuck, I can get Form2 to inherit other components like Labels and Textboxes
but I cant get it to inherit he Timer component.
Anyone know how to???
Do you even have to inherit the Timer to do this???

You will have to pass a reference to the timer or form1 instance to your
form2 instance.

<http://groups.google.com/[email protected]>
 
OK now I see Thanks for your help, it gets hard to work with VS NET 2003
when your app- gets large in size, the app- I'm working on is has about 300+
Forms, and 1XXxxxXXXxxx lines of code, it makes me not able to think strate
after looking at it for more than 5 min, junk all over the place .....
TANKS again 4 your help.
 
Back
Top