adding controls to a listbar group

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Smith

    adding controls to a listbar group

    Hi,
    I can add a treeview control to a group call "Projects" of a listbar as follows:

    Dim TreeView As ListBarGroup = ListBar1.Groups .Add("Projects" )
    TreeView.ChildC ontrol = Me.projecttree

    However I wish to add another control to the same group. by going
    treeview.childc ontrol = me.mycontrol, It just overwrites the first called
    projecttree with the second control, How do I get 2 controls in the same
    group.

    Robert
  • Herfried K. Wagner [MVP]

    #2
    Re: adding controls to a listbar group

    * =?Utf-8?B?Um9iZXJ0IFN taXRo?= <Robert Smith@discussio ns.microsoft.co m> scripsit:[color=blue]
    > I can add a treeview control to a group call "Projects" of a listbar as follows:
    >
    > Dim TreeView As ListBarGroup = ListBar1.Groups .Add("Projects" )
    > TreeView.ChildC ontrol = Me.projecttree[/color]

    What's a listbar?

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    • Cor Ligthert

      #3
      Re: adding controls to a listbar group

      Hi Robert,

      Herfried helped me probably to understand a little bit more of your
      question.

      However can you give some more information?

      Maybe we can than help you.


      Cor
      [color=blue]
      > I can add a treeview control to a group call "Projects" of a listbar as[/color]
      follows:[color=blue]
      >
      > Dim TreeView As ListBarGroup =[/color]
      ListBar1.Groups .Add("Projects" )[color=blue]
      > TreeView.ChildC ontrol = Me.projecttree
      >
      > However I wish to add another control to the same group. by going
      > treeview.childc ontrol = me.mycontrol, It just overwrites the[/color]
      first called[color=blue]
      > projecttree with the second control, How do I get 2 controls in[/color]
      the same[color=blue]
      > group.
      >[/color]


      Comment

      • Cor Ligthert

        #4
        Re: adding controls to a listbar group

        Hi Herfried,
        [color=blue]
        >What's a listbar?[/color]

        Scorpion and CJ told already that you have to go a time to Amsterdam.

        I assume that a listBarGroup is an array of bars.

        You know a street and than in every house a bar and a bar and a bar, do they
        not have that in Vienna.

        And when there is a new bar you can add that to your list of bars as a
        group, where you put information on that.

        But when you have 2 bars on the same adress, you need some extra pages in
        your listbar.

        So something as a array in an array more in your words.

        :-)

        Cor


        Comment

        • Robert Smith

          #5
          Re: adding controls to a listbar group

          Hi Cor,
          Thats all quite amusing, but a listbar is a control like that found in microsoft outlook or in the vb.net toolbox when there are different groups with bars that slide up when you click on them.
          take a look at this then you will know.



          Robert

          "Cor Ligthert" wrote:
          [color=blue]
          > Hi Robert,
          >
          > Herfried helped me probably to understand a little bit more of your
          > question.
          >
          > However can you give some more information?
          >
          > Maybe we can than help you.
          >
          >
          > Cor
          >[color=green]
          > > I can add a treeview control to a group call "Projects" of a listbar as[/color]
          > follows:[color=green]
          > >
          > > Dim TreeView As ListBarGroup =[/color]
          > ListBar1.Groups .Add("Projects" )[color=green]
          > > TreeView.ChildC ontrol = Me.projecttree
          > >
          > > However I wish to add another control to the same group. by going
          > > treeview.childc ontrol = me.mycontrol, It just overwrites the[/color]
          > first called[color=green]
          > > projecttree with the second control, How do I get 2 controls in[/color]
          > the same[color=green]
          > > group.
          > >[/color]
          >
          >
          >[/color]

          Comment

          • Cor Ligthert

            #6
            Re: adding controls to a listbar group

            Hi Robert,
            [color=blue]
            > Thats all quite amusing, but a listbar is a control like that found in[/color]
            microsoft outlook or in the vb.net toolbox when there are different groups
            with bars that slide up when you click on them.[color=blue]
            > take a look at this then you will know.
            >
            >[/color]
            http://www.vbaccelerator.com/home/NE...ar/article.asp[color=blue]
            >[/color]

            I had in a way the idea that you had build your own derived class to hold
            the different treeview parts, this is a user build control, the code is in
            C# however probably not completly managed code.

            Now I know what you mean. This means that there will probably not many who
            know about this in this newsgroup, however it is not impossable. When you
            message again to this newsgroups with non standard controls (or from that
            derived ones) it is better to tell that, direct, the change that someone
            knows what it is about is much wider.

            A fancy name as the "listbar" will not by everyone be understood, a search
            on MSDN gives not one response on that.

            I think that it goes to deep for me to investigage time in this, however
            maybe there is someone else.

            By the way, I saw at the bottom of the paga an emailadress.

            I hope you find your solution.

            Cor


            Comment

            • Michael Doherty

              #7
              Re: adding controls to a listbar group

              You should have specified the control you were using in your original
              message.
              ListBar is not a standard dotnet control. There are hundreds of Listbar
              controls scattered all accross the web. You could be using any one of them.

              I have not looked at the Control that you are using, but I would assume
              that, if you want more than one child control in a group, you should add a
              Panel control to your group and then add controls to the panel.

              \\\
              Dim TreeView As ListBarGroup = ListBar1.Groups .Add("Projects" )
              Dim Group1 As New Panel
              TreeView.ChildC ontrol = Group1
              Group1.Controls .Add(projecttre e)
              Group1.Controls .Add(mycontrol)
              ///
              --
              Mick Doherty



              "Robert Smith" <RobertSmith@di scussions.micro soft.com> wrote in message
              news:D953FC6C-8B2C-43FF-B862-521D96E3C30B@mi crosoft.com...[color=blue]
              > Hi Cor,
              > Thats all quite amusing, but a listbar is a control like that found in[/color]
              microsoft outlook or in the vb.net toolbox when there are different groups
              with bars that slide up when you click on them.[color=blue]
              > take a look at this then you will know.
              >
              >[/color]
              http://www.vbaccelerator.com/home/NE...ar/article.asp[color=blue]
              >
              > Robert[/color]


              ---
              Outgoing mail is certified Virus Free.
              Checked by AVG anti-virus system (http://www.grisoft.com).
              Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004


              Comment

              Working...