adding controls to a listbar group

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.ChildControl = Me.projecttree

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

Robert
 
* =?Utf-8?B?Um9iZXJ0IFNtaXRo?= said:
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.ChildControl = Me.projecttree

What's a listbar?
 
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
 
Hi Herfried,
What's a listbar?

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
 
Hi Robert,
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.

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
 
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.ChildControl = Group1
Group1.Controls.Add(projecttree)
Group1.Controls.Add(mycontrol)
///
--
Mick Doherty
http://homepage.ntlworld.com/mdaudi100/alternate/home.html


Robert Smith said:
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.
 
Back
Top