-
I have a drop down button on my toolbar with 5 functions what i am tryinh to do is whencertain events happen on the main form certain functions become disabled, basicly i want to enable and disable the contents of that button bar.
I have been at this for 2 weeks and i cnat find any reference to the dropbown button. Thanks
-
Here is how you can use drop down button.
1. Add a toolbar
2. Right click on the toolbar and click on properties
3. Choose the buttons tab
4. Click on insert button
5. click on insert button menu
6. Enter the text and key
7. Click on style and choose tbrDropdown
8. Press ok
To code the dropdown buttons choose the event ButtonMenuClick.
Danial
-
For instance, To disable the first buttons dropdownmenus first item:
Code:
Toolbar1.Buttons.Item(0).ButtonMenus(0).Enabled = False
-
Thanks Danial & Kedman
At last after two weeks and lots of posting (Not this sight)I have the answer.
Well Done.
Alan