moongodess Posted November 23, 2005 Posted November 23, 2005 I've made a module with some functions to show/handle messageboxes and their results. I've been using this module since I started Vb.Net, in all my projects. Now I created a nes dll project and add this module, but every messagebox, messageboxbuttos or items says that they are not declared... Am I missing something? Quote
Administrators PlausiblyDamp Posted November 23, 2005 Administrators Posted November 23, 2005 Have you added a reference to System.Windows.Forms.dll? Also yuo will need to add Imports System.Windows.Forms to the top of the code file. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
moongodess Posted November 23, 2005 Author Posted November 23, 2005 I've done "Imports System.Windows.Forms" and now it works... I just don't understand is why did'nt I need that until now... But it's ok :) Works! Is what matter... Thanks a lot :) Quote
Cags Posted November 23, 2005 Posted November 23, 2005 If your function was previously written as part of a form class it will have automatically included the Imports line. Quote Anybody looking for a graduate programmer (Midlands, England)?
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.