[RESOLVED] casting timer object to System.Windows.forms
Hi. I want to use a timer object from system.windows.forms. However, I also use threads, and I use the namespace: using System.Threading; Just that when I declare a timer object as:
Timer updateTimer;
I get an errro saying that it is ambigious. Is thhere some way to cast the Timer object to System.Windows.Form?
Jennifer
Re: casting timer object to System.Windows.forms
Sorry guys. I found it out. I could miss silly mistake sometimes. Its
System.Windows.Forms.Timer updateTimer;
I'm still learning
Jennifer
Re: casting timer object to System.Windows.forms
You can use a "using" directive to create an alias for namespace, to make it a little easier.
Code:
// in namespace
using WinForms = System.Windows.Forms;
// in class
WinForms.Timer updateTimer;
Re: casting timer object to System.Windows.forms