Results 1 to 6 of 6

Thread: [2005]Plugin Question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    24

    [2005]Plugin Question

    Ok I am writing a program that is plugin based, the application checks for plugins and then adds a tab to the main tabcontrol for each plugin, the plugins then also load there own interfaces, and each has its on options form witch is in the plugin, so i got the plugins loading ok and adding all the controls to the main form, but i cant figure out how to make the plugin control the button clicks and what not, ive looked at a few articles on the net but still cant get it workin
    thanks
    Last edited by hman333; Jul 26th, 2006 at 12:23 PM.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    24

    Re: [2005]Plugin Question

    bttttt

  3. #3
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    Re: [2005]Plugin Question

    Quote Originally Posted by hman333
    but i cant figure out how to make the plugin control the button clicks and what not
    What do you mean? Please rewrite this as a question and give more detail.
    * Don't limit yourself to sanity
    * I'd rather be optimistic and naive than pessimistic and right
    * Ask good questions, get good answers.

    My Codebank submissions:
    How to write one rountine to handle many events
    Accessing and Using variables across multiple forms
    Printing/Previewing a form or control

    Links I've "borrowed" from other people:
    vbdotnetboy - Awesome site for tips

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    24

    Re: [2005]Plugin Question

    how do you write the code in the plugin to control the button_click event

  5. #5
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    Re: [2005]Plugin Question

    I think the best way to do it is to write your button1_click event so that it calls an function that can be overridden. Then have each of your plugins override that function...

    On second thoughts, it might be better to have your main program search through plugins until it finds one that has a function that can replace the button1_click event, then calls that event... Hmm... this isn't an easy question...

    If your plugins add controls based on the plugin, you could activate the relevant control somehow I'm sure... I don't know anymore without an idea of the code you're using to get the rest working...
    * Don't limit yourself to sanity
    * I'd rather be optimistic and naive than pessimistic and right
    * Ask good questions, get good answers.

    My Codebank submissions:
    How to write one rountine to handle many events
    Accessing and Using variables across multiple forms
    Printing/Previewing a form or control

    Links I've "borrowed" from other people:
    vbdotnetboy - Awesome site for tips

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    24

    Re: [2005]Plugin Question

    ok thanks, i got it now, but i have a new question, i am trying to add a control array of 26 linklabels to the tab on the plugin, but it will not let me declare them withevents so i can put them on but how do i control their click events, i really dont want to declare each one seperatly and edit them all seperatly. they will all do the same thing so i only need one click event
    Last edited by hman333; Jul 28th, 2006 at 08:04 AM.

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