I am developing an ActiveX control, that uses a tabbed pane, to jump between 3 different panes, each performing different tasks.
My problem is that my UserControl code is becoming extremely large and difficult to manage. Each individual pane requires a significant amount of code.
What I would like to be able to do is to store the implementation for each pane in a seperate file.
I have considered the following things :
1) Create each pane as a seperate ActiveX control, and make the appropriate one visible when a new pane is selected. This is not really feasible, as all three panes must include certain common class modules.
2) Create each pane as a borderless form. I have played about trying to get this to work, but it does not seem to be possible to load a form from within the UserControl. Anyway, this would probably be no good to me, as the form would always have to be kept on top, even when the main application form had focus. Is it possible to do this?
Perhaps there is an altogether better solution, that I have not thought about. I am happy to hear any other ideas you may have.
I hope all this makes sense :)