Cannot remove toolbar ...

J

JustMe

Hi ...

I have a tabcontrol on my form. When the user clicks on tabpage1, I need to
show a toolbar. This works fine. When the user clicks on tabpage2, I need
to hide the toolbar, and replace it with a menu.

No matter what I try, I cannot get the toolbar to disappear.

I've tried all of the following:

toolbar1.hide
toolbar1.visible=false
me.controls.remove(toolbar1)
toolbar1.dispose
me.menu = nothing

Am I missing something obvious?

Thanks in advance.
--Terry
 
J

JustMe

Sorry. False alarm.

The following code did work after all.

me.controls.remove(toolbar1)

--Terry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top