허정민 허정민 - 24 days ago 12
Vb.net Question

VB.Net - Type Vector is not defined

I got error:


Type 'Vector' is not defined.


I was using Visual Studio Community 2015, VB.NET, Framework 4.5.2.

And I got error on this line:

Dim vector1 As New Vector(40, 50)

Answer

Add a Reference to WindowsBase

Import the Namespace

Imports System.Windows

Then it should work

Comments