feurich Posted July 21, 2005 Posted July 21, 2005 Is there a way of adding items to a listbox manually. The only wat I know is by opening a dialogbox and typing the value in, then transfering the value to the listBox1.Items.Add(txtBox.text); I want is to be able to type in the value directly in to the ListBox Item area. I think this gives less interface action and makes it more relaxed to work with. I don't like it when to much dialogs have to be opend to get to or insert data into forms. Feurich :rolleyes: Quote Trust the Universe
Machaira Posted July 21, 2005 Posted July 21, 2005 Why not just put the textbox to add the items to the listbox on the same form as the listbox? Quote Here's what I'm up to.
BlackStone Posted July 21, 2005 Posted July 21, 2005 You could try using the ListView control... Quote "For every complex problem, there is a solution that is simple, neat, and wrong." - H. L. Mencken
Wile Posted July 22, 2005 Posted July 22, 2005 Try a combobox with the dropdownstyle to simple. . It looks just like a regular listbox, but it has a textbox area on the top where you can directly type in a new value. I've never tried it myself so I dont know what happens when entering values that do/dont exist in the list yet ;). Quote Nothing is as illusive as 'the last bug'.
Machaira Posted July 22, 2005 Posted July 22, 2005 You have to manually add them if they don't exist, but it's only one line of code. :) Quote Here's what I'm up to.
feurich Posted July 22, 2005 Author Posted July 22, 2005 Combobox !! Hi guys, The ComboBox, for me, seems the best. Thanks for the help. ;) Feurich Quote Trust the Universe
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.