Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...