Leaders Iceplug Posted December 24, 2002 Leaders Posted December 24, 2002 Hi. I can compile my projects that don't include this line, but when I try to compile while Imports System.Windows.Forms it says that it can't find this (Forms of System.Windows.Forms). Is there something that I need to download, or any thing that I need to do to get this to work? :( [edit]I located several System.Windows.Forms files on the computer myself, but the compiler can't find them...[/edit] Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Leaders John Posted December 24, 2002 Leaders Posted December 24, 2002 Is the code something you can post here? Where is this Imports System.Windows.Forms located in your code? I let .NET do allot of things for me and it has this: Public Class frmEditor Inherits System.Windows.Forms.Form '... Where is uses Inherits not Imports. I could be way off the mark here, just starting all this. Orbity Quote "These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
*Experts* Volte Posted December 24, 2002 *Experts* Posted December 24, 2002 Try going to Project->Add Reference and add System.Windows.Forms.dll to the list and click OK, and see if that fixed it. Quote
Leaders Iceplug Posted December 24, 2002 Author Leaders Posted December 24, 2002 I'm using the MSDN download version that doesn't have menus or much else of a UI. My Imports System.Windows.Forms is after other Imports. Imports System Imports System.IO Imports System.Windows.Forms Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
*Gurus* divil Posted December 25, 2002 *Gurus* Posted December 25, 2002 You need to add a project reference to System.Windows.Forms.dll before the import will work. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Leaders Iceplug Posted December 25, 2002 Author Leaders Posted December 25, 2002 Hmm... is that possible with only the framework... or do I have to wait until I get the Visual Studio to get this to work? Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Leaders John Posted December 25, 2002 Leaders Posted December 25, 2002 After looking at THIS example in the code library it appears the reference will be used when actually compiling the program from the command line. Have a look at the .bat file included with that project and you will see what I mean. Have you looked at Sharp Develop? Orbity Quote "These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
*Gurus* divil Posted December 26, 2002 *Gurus* Posted December 26, 2002 Yes, when compiling from the command line you need to specify assembly references as parameters to the compiler. I think you do so with the /R parameter: C:\> vbc.exe [other options] /R:System.Windows.Forms.dll Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Leaders Iceplug Posted December 26, 2002 Author Leaders Posted December 26, 2002 Thanks, thanks, thanks! :D I added the /R: and it compiled! :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.