Type not defined

  • Thread starter Thread starter portroe
  • Start date Start date
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
 
Hi Portroe,

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

Cor
 
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
 
* 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?
 
Hi Herfried,

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