Variables giving errors

Hi all,

I have a program that have been using variables such as int16, Char, Windows, Environment, DateTime...

This program has worked for over 8 years as is, however, it now gives me the following errors:

Name 'Environment' is not declared
Type 'int16' is not defined
Type 'DateTime' is not defined
Type 'Exception' is not defined
Name 'Char' is not declared

Code snippets (one liners) of how these are used are:

PUB_user = Environment.UserName
Dim DT_date As DateTime = Now()
For i As Int16 = 1) then
If [Char].IsNumber(e.KeyChar)
Catch ex As Exception

My references haven't changed. I've attached a screenshot of my references.

Thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Deepak LakkadCommented:

This issue is due to missing reference.

What is the first reference?

- Deepak Lakkad
FMabeyAuthor Commented:

Thanks for your response. The missing DLL I know about. It's a Crystal dll that is no longer required.

FMabeyAuthor Commented:
I'm not too sure what the cause of this issue was but the resolution was to prefix my troublesome variable with the relevant reference i.e. system.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FMabeyAuthor Commented:
Resolution found
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.