[RESOLVED....?] A question about Dotnetbar control.
If anybody have ever done with Dotnetbar interface please help me this question.
I want :
Code:
For Each ctrl As ButtonItem In Ribbonbar1.Controls
MsgBox(ctrl)
Next
But msgbox didnt show.
I checked and know Ribbonbar1.Controls.count = 0. I dont know why.
I placed many controls to it. If Ribbonbar1 is not a collection why does it have controls propety ?
Re: A question about Dotnetbar control.
I'm guessing that you haven't actually added the controls to the Ribbonbar itself. It probably has a collection of items and each of those items is what the controls get added to. Have you read the documentation for the Ribbonbar control? I'm sure it will explain this.
Re: A question about Dotnetbar control.
I have to change Ribbonbar.Controls to Ribbonbar.items.
Then it worked.