Initialization in a Module

  • Thread starter Thread starter afrinspray
  • Start date Start date
A

afrinspray

Guest
Why does

Visual Basic:
Public f1 As Form1 = new Form1()

work in a module, whereas

Visual Basic:
Public f1 As Form1
f1 = new Form1()

does not? I get the error "Declaration Expected."

Thanks again,
Mike

[edit]Please use forward slashes in your tags, and use vb instead of code for vb code[/edit]
 
Last edited by a moderator:
Back
Top