Object can't be referenced

CryoEnix

Regular
Joined
Jan 11, 2003
Messages
93
Location
Wrexham, Wales
Hi all,

I've got a class which, when called, will search through all of the files in a string array to process them. The problem is that the method should also take a pointer to a progressBar (for obvious reasons), but the UI doesn't even see the System.Windows part - I've tried implementing a 'Imports...' statement at the top of the class, but that won't even work. Any ideas?

Code:
Public Function addTexts(ByRef filePaths() As String, ByRef pcMain As System.Windows.Forms.ProgressBar) As Integer
 
Last edited:
This might be a stupid question, but if this is a class library, are you sure you have System.Windows.Forms.dll referenced?
 
Back
Top