SubClassing WniUI

  • Thread starter Thread starter w
  • Start date Start date
W

w

Hi Everyone,

I'm currently working on a program that contains a series of forms. All of these forms need to have the SAME toolbar. I've tried creating a base form, called templateForm and making all my forms inherit from it. The problem is though, I cannot seem to put the click events on each subclassed form. ie I have form2 which inherits from templateForm. When I double click on the "Add" icon in the toolbar on form2 it autogenerates the "click" event on the templateForm class, not on the form2 class.

Any help would be greatly appreciated!

Thanks

WT
 
Hi
Why don't you make that toolbar as custom user control (with all its
handler and functionality) then add it to all your forms. Or you can make
your application MDI at that toolbar to the parent form.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Back
Top