Lemon Posted March 4, 2004 Posted March 4, 2004 Hi i created the following code to fill my combobox. I want to have nice cols so i tryed to use tabs. But the result can you see here: http://users.pandora.be/genenbossport/storage/pics/vb_prob.jpg the code: echo = "week:" & id.ToString & ControlChars.Tab & "- " & echoStartdatum & ControlChars.Tab & "t.e.m. " & echoEinddatum lstWeken.Items.Add(New Mylist(echo, id)) nm the mylist, it is just adding another hidden value / row in the combobox. I cant manage to get real tabs in my rows :s Anyone know how i can solve this. Its for a school project. Quote
Quercus Posted March 4, 2004 Posted March 4, 2004 I have not tried this, but from what I have seen, this is not a simple problem to solve and can't be done with simple tabs. Run a search for "multi column combobox" and "multi column list box" and you will find solutions. In any event, you will probably find that you need to either handle the OnDrawItem event, or create your own control. You might want to check out these: www.codeproject.com/cs/combobox/multicolumncombo.asp www.codeproject.com/cs/combobox/MultiColumnListBox.asp http://www.codeproject.com/vb/net/multicolumncombo.asp There is more out there. Good luck. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.