Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
i have a listbox in which text is to be displayed coloumn wise as shown below
1 ABCD 23 21 12
2 wwww 23 22 22
Right now i am storing each item of a row in a CString. And for displaying each row i use the following code
sDisplayStr.Format("%-10s%-10s%-10s%-10s%-10s%", sSlNo, sName, sText1, sText2, sText3);
where sSlNo = "1", sName = "ABCD", sText1 = "23", sText2 = "21", sText3 = "12"
I am not able to format the text properly. could anybody help me out please?
Also i want to know how do i change the font of the list box contents to courier new?
0 · ·