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 4 3979
* "Mike Parris" <an*******@disc ussions.microso ft.com> scripsit: 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.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
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 -----Original Message----- * "Mike Parris" <an*******@disc ussions.microso ft.com>
scripsit: 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.
-- Herfried K. Wagner [MVP] <http://www.mvps.org/dotnet> .
* <an*******@disc ussions.microso ft.com> scripsit: 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.
You may want to turn to the ng for ASP.NET Web Controls questions for future
ASP.NET Web Control related questions:
<news://msnews.microsof t.com/microsoft.publi c.dotnet.framew ork.aspnet.webc ontrols>
Web interface:
<http://msdn.microsoft. com/newsgroups/default.asp?url =/newsgroups/loadframes.asp? icp=msdn&slcid= us&newsgroup=mi crosoft.public. dotnet.framewor k.aspnet.webcon trols>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Thanks Herfried,
I will do that
Mike -----Original Message----- * <an*******@disc ussions.microso ft.com> scripsit: 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. You may want to turn to the ng for ASP.NET Web Controls
questions for futureASP.NET Web Control related questions:
<news://msnews.microsoft.com/microsof...c.dotnet.frame
work.aspnet.web controls> Web interface:
<http://msdn.microsoft.com/newsgroups/default.asp?
url=/newsgroups/loadframes.asp?
icp=msdn&slcid= us&newsgroup=mi crosoft.public. dotnet.framewo
rk.aspnet.webco ntrols> -- Herfried K. Wagner [MVP] <http://www.mvps.org/dotnet> . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: pothik05 |
last post by:
Hello
I am trying to change the color of individual entry in the listbox control
based on some custom event. Can anyone please give any idea how to do it?
Thanks
|
by: David Ichilov |
last post by:
I've class derived from "Object" class, with ToString() method overriden
itc. ,
now i add object of this class to Windows.Forms.ListBox.Items
collection, and it works fine, displaying what ToString() should return...
then the program is in the runtime, i chage fields of this object in thet
way ( (MyClass)ListBox.SelectedItem ).SomeProperty = newValue;
so ToString() method now will return new value, but text showed in a listbox
itself...
|
by: CrimeMaster |
last post by:
HI
I have an Exe file when it runs ,there are just two controls on the
window.One is a ListBox and another is a Multi line Rich Edit
control.When i click on an item in the list some text is displayed in
the Edit control.Exe have a Hunderds of items in the List
controls,which display some text in edit control against an item
selection.
I want to read that data which is displayed in edit control against the
selection of an item in list...
|
by: cowznofsky |
last post by:
I was databinding to a combobox and supplying both a DisplayMember and
a ValueMember,
so that each item.
Now I've decided against databinding, and will populate it by going
through a datatable.
What's the easy way to populate it so that each item has both a value
and a text?
|
by: Ron |
last post by:
so if my textbox is named textbox1 and my listbox is named
ltsdisplay, for the button that would make this all happen I would
just need to:
lstdisplay.items.textbox1(delimited.Split(",".ToCharArray()))
is that right? or no? I try this and I get an error...
| |
by: rahulnag22 |
last post by:
Hi,
Is it possible to have different items in a listbox in different
colors? Or is it just one color for all items in a listbox?
Thanks
Rahul
|
by: kimiraikkonen |
last post by:
Hi,
I want to save all the item content of a listbox line by line into a
simple text file then recall them when my project is opened.
For example listbox1 contains:
That - item1
Group -item2
Is -item3
Really -item4
|
by: kimiraikkonen |
last post by:
Hi,
I can read from a text file and insert text file's contents into a
listbox whose format is line by line using this code:
Dim reader As String
reader = My.Computer.FileSystem.ReadAllText("c:
\bookmarks.txt")
Dim strs() As String
strs = Split(reader, Environment.NewLine)
|
by: PaulBrains |
last post by:
I was trying to sum up all the items of a listbox in Visual Studio 2005. I tried to loop (from 0 to ListBox.Items.Count - 1) as follows
For j as Integer = 0 to ListBox.Items.Count - 1
sum = sum + val(ListBox.Items.Item(j))
Next
My problem is: the sum variable keeps returning 0, and the
ListBox.Items.Item(j) does not have a text property or value property. So, please how do I get hold on the text of an item of a...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |