Results 1 to 3 of 3

Thread: [RESOLVED....?] A question about Dotnetbar control.

  1. #1

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    [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 ?
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: A question about Dotnetbar control.

    I have to change Ribbonbar.Controls to Ribbonbar.items.

    Then it worked.
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width