הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Friday, March 29, 2013 5:39 AM
Hello
here is my project categorization
and i have this line in my class library project
Application.OpenForms(0).Invoke(New EventHandler(AddressOf prin))
and when i compile it shows me this error:
'Application' is not declared. It may be inaccessible due to its protection level
i googled a lot this error and found it can maybe related to application is not in the NameSpace library project.i want to know how can solve this problem?
any help would greatly appreciated
All replies (2)
Friday, March 29, 2013 7:24 AM ✅Answered | 2 votes
Try adding a reference to System.Windows.Forms and add this line to your code: Imports System.Windows.Forms. Then Application.OpenForms(0) should be available.
Friday, March 29, 2013 7:07 AM
Click in top of solution "Show all Files" and set it to true, then you see the rest.
Success
Cor