Link to home
Start Free TrialLog in
Avatar of Member_2_3254
Member_2_3254

asked on

Toolbar control - saving & restoring

Preamble:
When using the toolbar control within VB5, I set the cutomizable property=True & Allow the user to DBLClick on the toolbar.
On the change event I use the Toolbar.SaveToolbar method & it seems to save the information correctly to the registry.
When using the Toolbar.RestoreToolbar method (form_load) I use the same key,subkey,value as for the SaveToolbar method, but it does not restore the toolbar correctly.
Question :
Am I doing something wrong (and if so what), or is this a known "feature" ?
ASKER CERTIFIED SOLUTION
Avatar of clifABB
clifABB

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_3254
Member_2_3254

ASKER

thnx - why does this work ?
From you answer I thought that the "RestoreToolbar" would work when called from the Form_Activate (instead of _Load) event (since the .Visible property has by then changed to True, and some sort of "DoEvents" happened between the two messages/events)
It turned out not to work & I can't figure out why.
I'm new to experts-exchange - does this qualify as a "new" question ?
I don't understand why either.  A bug perhaps?


A new question?  Well, I suppose.  I've never seen a question like this before.  (Actually I didn't even know you could save toolbar settings until your question)
as far as i can gather you need an image
on the buttons.. the only way i found to do this is by adding buttons and assigning an image to it in the toolbar custom box..
not much use i know but that's the only way i know it to work