I have a toolbar in my program and am trying to disable it at certain times.
I have tried xxxToolbar.Enabled = False but it does not work. The xxxToolbar.visible = False
does work but I don’t want to make it invisible just lock it so options on it don’t work till the
function that locks it is done. Is there a way to just disable the whole toolbar without having to
disable all items on a toolbar separately ?
[quote=68906:@Jerry AB]Is there a way to just disable the whole toolbar without having to
disable all items on a toolbar separately ?[/quote]
Place Return at the beginning of the toolbar Action event and it will be disabled.
Set a boolean property of your own,
set it True / False where that belongs,
use a if block at the beginning of the ToolBar Action Event that have a Return inside based on your own defined True False Boolean property.
I don’t know why I did not see that as I do that for the main menubar. Could be maybe it was 2am in the morning
and I could not see the forest through the trees…