Reputation: 349
i am writing a programm for a windows form and i use POINT as well as VECTOR. Point needs using System.Drawing while vector needs System.Windows
If i use both of them i get ambiguity for each created point. I dont want to write everywhere in my code now System.Drawing.Point = new Point
Is there a way to tell the programm to always use the System.Drawing for Points?
I tried adding the WindowsBase.dll but that didnt help. He wouldnt recognise "Vector" as a struct than.
If there is any other way to use Points and Vectors in a WIndows form, that would also be ok. I just dont want to write the namespace each time i use one of those.
Upvotes: 0
Views: 47