Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

retro FileSystem Controls

Joined
Feb 25, 2014
Messages
512
Hello .paul.

I was just playing with these retro controls. They appear useful and the code is informative on building controls, however they don't quite work and I'm trying to find out why.

When I add them to any form I receive the following error in the form designer:

'retro_FileSystem_Controls.fileList' is not defined.

Private Sub InitializeComponent()
Me.FileList1 = New retro_FileSystem_Controls.fileList()


My first question is, are these controls compatible with VS 2010? I did have to upgrade them so I suspect they are for an earlier version. If so, do you have a later version or a fix for this problem?

I have simply added the controls to the toolbox by right clicking on the toolbox , "choosing" and browsing to the DLL that I built using your project. The controls were successfully added to the toolbox. Dragging and dropping them to my new form in my new project was successful and a filelistbox control appears on the form. Building my project, however, generates the error above.

Any pointers?
 

.paul.

eXtreme Programmer
Joined
May 26, 2007
Messages
23,067
They don’t need upgrading. I’m surprised that the error doesn’t happen when you try to add them from the toolbox. Try changing it to...

Me.FileList1 = New fileList()
 
Joined
Feb 25, 2014
Messages
512
I’m surprised that the error doesn’t happen when you try to add them from the toolbox. Try changing it to...

Me.FileList1 = New fileList()

"Type 'fileList' is not defined."

Have I added the controls in the correct manner, as I described above?

The project's controls were built as a class library and the resulting DLL, 'retro FileSystem Controls.dll' was added via the "choose & browse" method.

There were no explicit instructions in your package so I have followed my nose assuming that I have added the controls in a fairly sensible manner, having checked the t'net first for instructions. It seemed to have worked well until I built my own project and those errors appeared.
 
Last edited:

.paul.

eXtreme Programmer
Joined
May 26, 2007
Messages
23,067
Just add the filelist class from my project to your project. After rebuilding, it’ll show at the top of your toolbox, and you shouldn’t have any trouble using it...
 
Joined
Feb 25, 2014
Messages
512
OK, did that. Add - Existing Project, - selected via browse, the controls appear in the top of the project as you suggested. All seems good.

I can drop a filelist onto the form and it appears as it should.

A build then generates the same error as in post #2

Type 'retro_FileSystem_Controls.fileList' is not defined.
 

.paul.

eXtreme Programmer
Joined
May 26, 2007
Messages
23,067
Not add existing project... Add existing item. Just add the classes individually.
 

.paul.

eXtreme Programmer
Joined
May 26, 2007
Messages
23,067
OK, did that. Add - Existing Project, - selected via browse, the controls appear in the top of the project as you suggested. All seems good.

I can drop a filelist onto the form and it appears as it should.

A build then generates the same error as in post #2

Type 'retro_FileSystem_Controls.fileList' is not defined.

If you want to make a control library of my classes (which is how you’re trying to use it), that’s an entirely different question, and you should ask that question in the main forum...
 
Top