Problem accessing windows namespace

matthew_carr

New member
Joined
Jun 27, 2007
Messages
2
Programming Experience
Beginner
Hi - I'm quite new to this and currently working through a text book. I seem to have hit a brick wall though - when I try to import the windows namespace into my console application, it is not available for selection after I type "Imports system." If I just type it in myself it is not recognised. Does anybody have any suggestions?

Kind regards,

Matthew Carr
 
You have to add reference to the .Net assembly System.Windows.Forms, it is not included by default and does normally not belong in a Console project. What do you need it for, perhaps there are other options?
 
Hi John - thanks for the guidance. I just wanted to perform a simple arithmetic calculation and have the result returned in a message box rather than on screen. It's not that big a deal - I was just confused why the code in the text book generated an error. Would it make a difference that I was using the Express edition?

Thanks,

Matthew
 
Console applications normally only output messages to user through console window, not forms and such dialogs. The MsgBox function that display a messagebox is still available without additional references and imports. VS Express has nothing to do with this.
 
Back
Top