0

Hello,
i have a problem with a timer , on my program i have 2 different classes under the same namespace
when i start the timer from the form class, the tick event happen on the elapsed interval.
but when i call the timer from the other class the tick event never happen.
I’m sending the timer as a parameter on a function of the other class

any idea why the timer event doesn’t work

Thanks

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by sknake
0
public void open_and_read(int length_array_text_box ,string file_dlg, string[] ToParse_general , bool operation, System.Windows.Forms.Timer timer)
		{	
                                                 
					
			timer.Enabled=true;
			timer.Start();
}
0

ZIP and upload your project by clicking "Go Advanced" then "Manage Attachments". There are a number of things that could be going wrong here.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.