declaring an OpenFileDialog object in a class for global use *RESOLVED*
I am trying to declare an instance of the OpenFileDialog object in a class, which is in a class library with the line
VB Code:
Public o As New OpenFileDialog
This line works fine in the form.vb file but then in the class.vb file the OpenFileDialog is underlined with a blue wiggle.
How do you declare an OpenFileDialog object in a class for global use?
Re: declaring an OpenFileDialog object in a class for global use *RESOLVED*
Quote:
Originally posted by davidrobin
I am trying to declare an instance of the OpenFileDialog object in a class, which is in a class library with the line
VB Code:
Public o As New OpenFileDialog
This line works fine in the form.vb file but then in the class.vb file the OpenFileDialog is underlined with a blue wiggle.
How do you declare an OpenFileDialog object in a class for global use?
how did you realise this? you mentioned a blue wiggle, that means there's an error in the code.
I always have the Task List visible so that I can see what the errors are, and what I have to do.
View > Other Windows > Task List (Ctrl+Alt+K)