You'll probably need to add a reference to Microsoft.VisualBasic.dll.
Camillia
ASKER
I'm using C# tho...not VB. Let me add a reference to Microsoft.CSharp.dll
Now, If I use
public class WindowsFormsApplicationBase : ConsoleApplicationBase
That's WindowsFormsApplicationBase inherting from ConsoleApplicationBase....
I need (per that article) my class to inherit from WindowsFormsApplicationBase
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Camillia
ASKER
I added a reference to Microsoft.CSharp.dll, that doesnt give me WindowsFormsApplicationBase either
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Unlimited question asking, solutions, articles and more.
kaufmed
Very interesting choice of answer selection.
Camillia
ASKER
oh, i'm sorry. I just saw that you have the same answer at the botton of your answer. If I can reopen and divide the points, i can do that.
AndyAinscow
I'm just puzzled why you highlight you are doing it in C# and then accept an answer to use VB.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Camillia
ASKER
because i didnt know i can add VB dlls to C# project. I tried it and it worked.
Éric Moreau
there is nothing wrong in using the VB library in C# if it contains features you want!
AndyAinscow
>>there is nothing wrong in using the VB library in C# if it contains features you want!
Agreed - but maybe there is a simple C# way to accomplish what was required. (One can get from A to D round a square by going A..B..C...D if one wants but maybe A..D is more suitable).
http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.applicationservices.windowsformsapplicationbase(v=vs.80).aspx
Open in new window