I have an interface in my VB.net windows forms application. The interface class is named IPAL.vb. Below is a stripped down example,
as I did not include all of the methods of the interface :
Public Interface IPAL
property ConnectionString() as String
I want to access the above interface in the code behind of one of my VB.net windows forms (Shown below). Below is the code where I declare
the interface object IPAL. Now the problem is that my Form1 class below can't access the above interface class, As you can see, I imported the
TNU.PAL interface class below.
When I compile the project code, the compiler gives me the error message "Type IPAL is not defined". So why can't my Form1 class find the interface IPAL defined in IPAL.vb ?
Public Class Form1
Private Shared MyIPALObj AS IPAL