Results 1 to 5 of 5

Thread: Plugin for application

  1. #1

    Thread Starter
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175

    Plugin for application

    Hi,

    I'm working on an application that i want to allow to add some features later with plugins.

    Its an client - server application, for the server i allready figured out to use plugins without restarting or changing anything to the server application.

    For the clients it's little harder cause it also needs a graphic interface for the client.

    Now the client application uses a tabcontrol for filling in the requested data.

    The plugin should be able to add an extra tabpage to the tabcontrol with the new form in it.

    Greets Nightmare

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Since there is no question here , click here .http://www.vbforums.com/showthread.p...ghlight=plugin

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Yes read that post. Also, adding Tabs to a tabcontrol is very easy. I am doing the same thing currently. Make sure all plugins hav a standard Initilization function that accepts a TabControl as a ByRef parameter. Then when you load the plugin, just run the function and pass your forms Tabcontrol to it, and the person who rights the plugin can use that instance to add Tabpages.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175
    tnx a lot.

    Sounds easy, lets hope its easy to.

    For the server sided plugins i made interface with functions for plugin, so its only filling in the code.
    Guest that should work for the tab to then.

    Greets Nightmare

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    For the server sided plugins i made interface with functions for plugin, so its only filling in the code.
    Yes. Exactly. Just add a function to your interface declaration that accepts ByRef TabControl as a param.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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