Oct 21, 2003 #1 M miwaypro Freshman Joined Oct 18, 2003 Messages 36 Location Malaysia Code: Imports System.Windows.Forms 'namespace ccontaining msgBox Can someone tell me that y the code above is invalid?
Code: Imports System.Windows.Forms 'namespace ccontaining msgBox Can someone tell me that y the code above is invalid?
Oct 21, 2003 #2 M mutant Ultimate Contributor Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA Where did you put it? The code above needs to be above any classes, on the top of the code.
Oct 21, 2003 #3 M miwaypro Freshman Joined Oct 18, 2003 Messages 36 Location Malaysia Code: Imports System.windows.forms 'namespace ccontaining msgBox Module Module1 Sub Main() End Sub End Module Error still occur what shold i do
Code: Imports System.windows.forms 'namespace ccontaining msgBox Module Module1 Sub Main() End Sub End Module Error still occur what shold i do
Oct 21, 2003 #4 V Volte Neutiquam Erro Joined Nov 17, 2002 Messages 2,172 You need to reference the System.Windows.Forms.dll in the Project References.
Oct 21, 2003 #5 M miwaypro Freshman Joined Oct 18, 2003 Messages 36 Location Malaysia Can u pls tell me how?
Oct 21, 2003 #6 V Volte Neutiquam Erro Joined Nov 17, 2002 Messages 2,172 Right click on the "References" item in the Solution Explorer and choose Add Reference.