|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ComboBox and Tab character '\t'Hi,
I am trying to show TAB character (char(9) or '\t') in a combobox dropdown list, but it doesn't show it. Is there anyway to show '\t' as a TAB in dropdown list text? If I can show \t in dropdown text, then I can make it like multicolumn list. This trick used to work back in win16 days. Thank you, Alan Hi Alan,
Based on my test, the Drop Down list did not recognize the "\t" as a special character. Even if in the Win32 MFC ComboBox Control, it did not recognize the "\t" as a special character. So far, as a workaround, I think you may need to calculate the text length and fill the space to workaround the issue. e.g. if we want add a string "A\tB", we can biuld a string "A B". If there are multiple strings which needs to align, we need to fill according to the concrete scenario. e.g. A B AA B AAA B Thanks for your understanding! Best regards, Peter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Other interesting topics
Tactics for Debugging Custom Components with CodeDom Serialized State
Auto Complete/Suggest (On Steroids) Recommendations for graphical application Databinding between two forms in .NET 2.0 Project Data Source Using Derived Interface DoubleClick Event Won't Fire Odd behavior with .NET 2.0 winforms multiple forms/common menu structure 'DisplayMember' is not a member of 'System.Windows.Forms.ListView'. ComboBox: How can I limit user to list items? |
|||||||||||||||||||||||