Daniel
Daniel

Reputation: 4342

using imported classes in main project

I have created a new project and added a separate class file. I'm still learning but why do i get the following errors? I can I use this class? enter image description here

Upvotes: 0

Views: 30

Answers (1)

Panu Oksala
Panu Oksala

Reputation: 3438

You have the class called Region_Drag which doesn't inherit from any other class. In code you are trying to say "Me.KeyDown", but in class you don't have any event called KeyDown which could be handled.

Also Me.Close() provides error because you don't have any Close method presented in a class.

Maybe you should inherit that Region_Drag from some class that provides methods that you need (UserControl?).

Upvotes: 1

Related Questions