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

 

cjaymcmeans

Well-known member
Joined
Jan 12, 2005
Messages
85
Programming Experience
3-5
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..
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
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:
Top Bottom