Indent text items in a ListBox

  • Thread starter Thread starter Mike Parris
  • Start date Start date
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
 
* "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.
 
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
 
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>
 
Back
Top