|
-
Sep 23rd, 2003, 12:53 AM
#1
Thread Starter
Member
CommandBar Delete doesn't work
Hi seniors,
I am developing an Add-In application for VS .NET. I have managed to create a toolbar (or commandbar). However, I could not delete it. It throws an exception when it reaches cmdbar.Delete() line. The error message is "Unspecified error".
Try
cmdbar = Me.applicationObject.CommandBars("MyAddIn")
cmdbar.Delete()
Catch ex As Exception
End Try
So far, I have found out that the cmdBar.BuiltIn property is True (as Standard toolbar has). This could be the reason why I could not delete this toolbar. But, how could it become True because it is not created by system default.
Anyone have a clue?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|