Type not defined

P

portroe

Dim ThisSalaryCalcForm As New SalaryCalcForm()

when I try to call a new instance above I get the error,

Type 'SalaryCalcForm' not defined,

what must I do to have it defined?

thanks

Portroe
 
C

Cor

Hi Portroe,

Look in the top of the code from the form SalaryCalcForm what name is
behind the public class ..................

Cor
 
J

Jan Tielens

SalaryCalcForm must be the name of a class, for example the name of your
form. Check the code of your form, it should state something like this:
Public Class SalaryCalcForm

Remember just changing the name of the .vb file in the solutions explorer is
not enough.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
H

Herfried K. Wagner [MVP]

* portroe said:
Dim ThisSalaryCalcForm As New SalaryCalcForm()

when I try to call a new instance above I get the error,

Type 'SalaryCalcForm' not defined,

That's a edit time error, isn't it? Maybe a typo in the name of the
class?
 
C

Cor

Hi Herfried,

Did you read that from portroes own answer on this question on (our time)
11.30 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top