473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.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
Nov 20 '05 #1
6 2177
* =?Utf-8?B?Um9iZXJ0IFNtaXRo?= <Robert Sm***@discussions.microsoft.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
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
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.

Nov 20 '05 #3
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
Nov 20 '05 #4
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.

http://www.vbaccelerator.com/home/NE...ar/article.asp

Robert

"Cor Ligthert" wrote:
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
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.


Nov 20 '05 #5
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. take a look at this then you will know.

http://www.vbaccelerator.com/home/NE...ar/article.asp


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
Nov 20 '05 #6
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/mdaudi1...nate/home.html
"Robert Smith" <Ro*********@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com...
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.

http://www.vbaccelerator.com/home/NE...ar/article.asp
Robert

---
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
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Dunstone | last post by:
Hi group I am trying to add a custom attribute to all .NET elements such as textboxes, labels, datagrids etc. I want to add an attribute called 'key'. I already have the code working for the...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
6
by: Brian Henry | last post by:
Hello, I am trying to make a user control that is interactive. What I am doing is drawing a set of bars on a control similar to a gantt chart and allowing a user to place the mouse over them to...
11
by: Neo Geshel | last post by:
Greetings. Hopefully someone will be able to untie this Gordian Knot I have found myself bound up in. I am trying to add a submit button dynamically to a PlaceHolder. This button will help...
3
by: Ronald S. Cook | last post by:
I lost my last post, but I'm looking for a better way to manage loading user controls (that are essentially forms) in a Windows app. In my current design, I have a ListBar in which the user...
3
by: Ronald S. Cook | last post by:
I'm developing a Windows application that will have an ListBar like in Outlook. When the user clicks on a ListBar item, I would like to load the associated User Control. The below code works...
4
by: Steve B. | last post by:
Hi As we ship some controls with one of our application that targets web designers, we want to add items in the toolbox of the two products. With VS 2005, it is quite easy, but what about this...
2
by: Chris | last post by:
I am getting a viewstate error when adding dynamically user controls. SYSTEM_EXCEPTION:Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree...
19
by: hedges98 | last post by:
Sorry for the mouthful of a title! Basically, I have a form with tabbed controls (Personal/Contact Details, Referral Information, Case Info/Status etc.) and I want to add a tabbed control form...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.