VB.NET Basic Example of WinForms Managed Extensibility Framework (MEF)-VBForums
Results 1 to 1 of 1

Thread: VB.NET Basic Example of WinForms Managed Extensibility Framework (MEF)

  1. #1

    Thread Starter
    Lively Member polecat's Avatar
    Join Date
    Jul 2005
    Location
    Wolverhampton
    Posts
    83

    VB.NET Basic Example of WinForms Managed Extensibility Framework (MEF)

    Yay my First Codebank Submission!!!! go easy on me!

    After Building an Application that required so extensibility I decided to go with MEF after a lot of searching I could not find a VB.NET WinForms example.

    The documentation here http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx is a bit misleading and the example is for a console application
    and the way they have mixed up the usage of imports is confusing for beginners so I put a small basic example together (Attached).

    The Example was done in VS2010 sorry don't like VS2012!

    open the solution and view the code there are some comments

    Just make sure that the references are ok for
    Code:
    System.ComponentModel.Composition
    1) Run MainApp without building the 2 extensions
    2) Build the 2 extensions into the MainApp > Extensions path
    3) Re Run MainApp

    That's it really just thought it was worth posting for some beginners! This is only intended as a very basic Starter!

    An this may not be absolutely correct usage but it works!
    Attached Files Attached Files
    Last edited by polecat; Jan 2nd, 2014 at 05:58 PM.

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.