[mono-vb] Problem in using "Inherits Timer"
Rolf Bjarne Kvinge
rolflists at ya.com
Tue Jun 23 11:14:32 EDT 2009
> 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
> 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).
> View this message in context: http://www.nabble.com/Problem-in-using-
> Sent from the Mono - VB mailing list archive at Nabble.com.
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
More information about the Mono-vb