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

Without some code that is a bit hard to tell...

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();
}

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.