[mono-vb] Problem in using "Inherits Timer"

Rolf Bjarne Kvinge rolflists at ya.com
Tue Jun 23 11:14:32 EDT 2009

> hi,
> I'm trying build my vb app which includes the following code:
> Public Class RSSTimer
>     Inherits Timer
>     Private mSkipNext As Boolean
>     Private mOriginalInterval As Integer
>     Private mResetRequest As Boolean
> etc.etc.etc.
> and I receiving the following err:
> Could not resolve the name 'Timer'(VBNC30451)
> Timer should be a generic vb class so I'm guessing that I'm missing
> something on my Mono instolation.
> What am I missing ? Where is Timer ?

There are at least two Timer classes, System.Windows.Forms.Timer and

I suppose you're using the System.Windows.Forms one. Add "Imports
System.Windows.Forms" at the top of the file, and if you're compiling on the
command line add -r:System.Windows.Forms.dll to the compiler arguments.

If you get an error about not finding System.Windows.Forms.dll, you need to
install the winforms package (the exact name depends on your distro).


> Thanks
> Erez
> --
> View this message in context: http://www.nabble.com/Problem-in-using-
> %22Inherits-Timer%22-tp24042081p24042081.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb

More information about the Mono-vb mailing list