Results 1 to 2 of 2

Thread: .Net Label, etc

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    7

    .Net Label, etc

    When I set a Label Text property as a "A______B", all spaces are removed but one, so on the page label looks like "A B"
    Someone helped me with the following solution -
    Label.Text = Label.Text.Replace(" ", ";&nbsp")
    (Underscores represent spaces)

    Well this works for labels but not for listbox. In other words
    a line like Listbox.Items.Add("A______B") will be shown as "A B"
    Can anybody help?

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    7
    Label.Text = Label.Text.Replace(" ", "nbsp")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width