Indent text items in a ListBox

M

Mike Parris

I want to represent a list of items as a heirarchy by,
indenting each item by a set amount depending on its level.
For example level 1 = no spaces, level 1 = 2 spaces etc.

If I try too use leading spaces or tabs to do this the
control removes them. Is there a way to do this?

Mike
 
H

Herfried K. Wagner [MVP]

* "Mike Parris said:
I want to represent a list of items as a heirarchy by,
indenting each item by a set amount depending on its level.
For example level 1 = no spaces, level 1 = 2 spaces etc.

If I try too use leading spaces or tabs to do this the
control removes them. Is there a way to do this?

I am not able to repro that, spaces don't get removed on .NET 1.0,
Windows XP Professional.
 
G

Guest

Thanks for the reply,

Sorry, I should have included that I want the list to
appear in a Web project ListBox control. The listbox
control in Windows forms will do what I want.

Mike
 
M

Mike Parris

Thanks Herfried,
I will do that

Mike
-----Original Message-----


You may want to turn to the ng for ASP.NET Web Controls questions for future
ASP.NET Web Control related questions:

<news://msnews.microsoft.com/microsoft.public.dotnet.frame work.aspnet.webcontrols>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp? url=/newsgroups/loadframes.asp?
icp=msdn&slcid=us&newsgroup=microsoft.public.dotnet.framewo
rk.aspnet.webcontrols>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top