473,397 Members | 2,084 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,397 software developers and data experts.

Display of spaces in listbox items


Could someone tell me if it is possible to for a listbox displayed on an
..aspx web page to display more than a single space between words.
all of the various test code below simply results in the display of a single
space between "Hello" and "test"

Thanks

Jeff
LI= New ListItem
Dim sb2 As New StringBuilder
sb2.Append("Hello")
sb2.Append(" ")
sb2.Append("&nbsp")
sb2.Append(Chr(32))
sb2.Append(Chr(32))
sb2.Append(Chr(32))
sb2.Append("test")

LI.Text = sb2.ToString
LI.Value = 88
emaillist.Items.Add(Question)


--
Posted via a free Usenet account from http://www.teranews.com

Apr 25 '07 #1
2 3088

"Jeff" <no**@nothingX.comwrote in message
news:46***********************@free.teranews.com.. .
>
Could someone tell me if it is possible to for a listbox displayed on an
.aspx web page to display more than a single space between words.
all of the various test code below simply results in the display of a
single space between "Hello" and "test"
Never mind - figured it out. chr(160) works.

--
Posted via a free Usenet account from http://www.teranews.com

Apr 25 '07 #2
"Jeff" <no**@nothingX.comschrieb:
sb2.Append("&nbsp")
="&nbsp;".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Apr 25 '07 #3

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

Similar topics

2
by: xzzy | last post by:
I have an app that uses a listbox to display program status messages, and a public function to be used by the solution to update the listbox. I do not know how to make the listbox public so it...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
6
by: Manan | last post by:
hello All, I have a simple question..I'm creating a tempString that contains my values then i'm adding to a ListItemCollection (). In my tempString i'm adding a spaces between each values it...
4
by: teo | last post by:
I have a LISTBOX how to insert VBTab or Blank spaces ? in Example Listbox1.Items.Add ("Hallo" & vbTab & "GoodMorning") or Listbox1.Items.Add ("Hallo" & " " & "GoodMorning") ...
1
by: MaRkHaSBEEnMade | last post by:
Hi there I currently have a listbox that displays provinces,regions and suburbs.I want to pad the items logically with spaces,but the spaces are being igonred... eg Province1 ...
2
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: ...
2
by: kimiraikkonen | last post by:
Hi experts, I need to display some custom text ouptut in a Listbox and the first 4 lines of listbox (index items) will be removed. the problem is not to know how to display custom text "line by...
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
3
by: kimiraikkonen | last post by:
Hi, I want to display ALL the items (includes unselected items) of listbox control. How can i code this? Should i use "for each" or other? For example: Assume you have a listbox with 3 items...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.