CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    117

    Ampersand(&) in listbox?

    Hi there,
    I noticed that using CListBox::AddString() to add a string containing ampersand(&) and it appear as an underline in the listbox. How can I correct it? Thanks.


  2. #2
    Join Date
    Apr 1999
    Location
    Quebec, Canada
    Posts
    39

    Re: Ampersand(&) in listbox?

    Hi,

    Did you try to make :

    AddString("\&MyString");
    I think it will do : &MyString

    To make a \ type \\ and so on, the caracter '\' is an escape caracter...

    Hope this helps.
    Nath.


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

Featured