H
Hari
I tried compiling the following source code:
Imports System
Imports System.Windows.Forms
Public Class Form1
Shared Sub Main
Dim f1 As New Form()
End Sub
End Class
I got the following errors:
error BC30466: Namespace or type 'Forms' for the Imports
'System.Windows.Forms' cannot be found.
Imports System.Windows.Forms
~~~~~~~~~~~~~~~~~~~~
error BC30002: Type 'Form' is not defined.
Dim f1 As New Form()
~~~~
I thought my entire stack of libraries was gone, but then when I tried to
compile the following code:
Imports System
Public Class Form1
Shared Sub Main
Console.WriteLine("Hello World")
End Sub
End Class
It compiled and ran perfectly. What have I done wrong? Do I need to change
the syntax of my code or download libraries? Is it that I am not compiling
my code correctly. Please reply soon. Thanks all- Hari.
P.S.
If you wish to reply to me personally (which I discourage), please remove
the x from my e-mail addresses as it only exists to prevent spam.
Imports System
Imports System.Windows.Forms
Public Class Form1
Shared Sub Main
Dim f1 As New Form()
End Sub
End Class
I got the following errors:
error BC30466: Namespace or type 'Forms' for the Imports
'System.Windows.Forms' cannot be found.
Imports System.Windows.Forms
~~~~~~~~~~~~~~~~~~~~
error BC30002: Type 'Form' is not defined.
Dim f1 As New Form()
~~~~
I thought my entire stack of libraries was gone, but then when I tried to
compile the following code:
Imports System
Public Class Form1
Shared Sub Main
Console.WriteLine("Hello World")
End Sub
End Class
It compiled and ran perfectly. What have I done wrong? Do I need to change
the syntax of my code or download libraries? Is it that I am not compiling
my code correctly. Please reply soon. Thanks all- Hari.
P.S.
If you wish to reply to me personally (which I discourage), please remove
the x from my e-mail addresses as it only exists to prevent spam.