I'm trying to add a tab to an existing tab control
Tab Control name = TabbedForms
On the button "AddOption" click even I make the public "AddTabs" value = "x". Then I switch the form to design view. I can't get the "Form_Deactivate" sub to call my function "AddPage"
This is the function, it does add a tab if I run the code when the form is in design view, but I can't get it run when the form is switched to design view from the form. I've tried "On Deactivate", "On Unload", "On View Change".. they don't seem to work.
I'm also wondering if there should be a check in the "AddPage" function that waits for the design view to fully load, or pass the form name to the "AddPage" function so it can make sure it's on the correct page.
Any help would be greatly appreciated
Bookmarks