By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,566 Members | 1,719 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,566 IT Pros & Developers. It's quick & easy.

SubClassing WniUI

P: n/a
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!


Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
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

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.