Error

kunnie

Member
Joined
Dec 9, 2004
Messages
19
Programming Experience
1-3
Public Class Form1

Imports System.io

Inherits System.Windows.Forms.Form

When I wrote Imports System.io it has an error saying
'Imports' statements must precede any declarations.
what is wrong with it can someone help?Thanks

 
try this...
Imports system.io

public class form1

place the import statement before the public class...

bout the form printing.. i know i've seen a thread with a similar dilema as you.. try to browse around..
 
kunnie said:
PublicClass Form1

Imports System.io

Inherits System.Windows.Forms.Form

When I wrote Imports System.io it has an error saying
'Imports' statements must precede any declarations.
what is wrong with it can someone help?Thanks


you must put the imports outside the class scope

Imports System.IO
Public Class Form2
Inherits System.Windows.Forms.Form

edit: your quite fast to draw man...:D
 
Last edited:
Back
Top