Tab cloning
Yup, that's it. And of course, that's the way I had it before I restructured the class stuff a bit. Didn't catch my own madness.
Most of my experience is with c++. Jiggling the class and scope "wires" to get stuff to work doesn't seem as subtle to me there as it does in this...
Had it working but needed to restructure some...so of course it broke. The following code builds the tabs correctly but doesn't add the controls. Any ideas?
Thanks.
Amendment - the last tab properly loads the user control, all the preceding are blank.
Public Class Spectrometer_Setup_Form...
I'm going to give #2 a crack. That does seem to be easier as it will let me more easily re-use a lot of the prototyping I've done to this point.
I'll get back in a day or so to report on the finished version.
It's interesting to me that my approach didn't work. I would think I'd either be...
I have a tab (created in the form developer) that contains about a dozen controls. I need to be able to clone this tab w/all controls. I have no problem creating the forms. However, the controls don't copy. This is true whether I create the new tab with a string:
... TabPages.Add(MO.Name)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.