Results 1 to 8 of 8

Thread: retro FileSystem Controls

  1. #1

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    retro FileSystem Controls

    here are my retro FileSystem Controls:
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    Re: retro FileSystem Controls

    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?

  3. #3

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: retro FileSystem Controls

    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()

  4. #4
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    Re: retro FileSystem Controls

    Quote Originally Posted by .paul. View Post
    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 by yereverluvinuncleber; Nov 13th, 2019 at 02:40 PM.

  5. #5

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: retro FileSystem Controls

    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...

  6. #6
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,235

    Re: retro FileSystem Controls

    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.

  7. #7

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: retro FileSystem Controls

    Not add existing project... Add existing item. Just add the classes individually.

  8. #8

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: retro FileSystem Controls

    Quote Originally Posted by yereverluvinuncleber View Post
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width