Hi, I made a new topic so it will not confusing.
I want to ask how to unload sub menu ?
for example, usually if we had sub subname() then we can just call it by subname()
But then how to unload/not load that subname()
is it possible ?
Because I use TabControl and it has 2 TabPage
So, I set when tabpage2 were selected then load editsub()
but then what I want is
When I was in TabPage1 edit button clicked, it will unload editsub() and it will load anothersub()
Because right now, whenever I clicked edit, it still load the editsub() not anothersub()..
I hope my question is not confusing..
should I attached the program and the code?
Just want to know how to unload the sub before i load another sub