I tried to use vbAccelerator CommandBar Control.
2 of my project forms contains commandbar.
This is the flow when i opening the form
Form1 : Cmdbar(0)
Remark : This form is using Popup Menu Style for commandbarClick one of the button of Form1 will able to open Form2
Form2 : Do not have commandbar
Click one of the button of Form2 will able to open Form3
Form3 : Cmdbar(1)
Everything is fine when i open form1 to form2 and form3. The Commandbar work Cool.
After i unload the form3 and form2. My popup command bar of form1 prompt me an error : Run-Time error '457':
This key is already associated with an element of this collection.
I knew the commandbars are global.
I also do not have duplicate Skey for commandbar.
I create the commandbars separately in form with no same Skey
I debug the project by using break point. I found that after i unload form2 and form3 when i click again for popup menu form1. the break point wil back to form3 form_load
How can i solve the problem.
Best regard
nuFLaVors
I will sing a song heaven if someone help me ^^![]()




I tried to use vbAccelerator CommandBar Control.
Reply With Quote