Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

textbox to listview

combobox

  • Please log in to reply
13 replies to this topic

#13 pb_ce85

pb_ce85

    CC Newcomer

  • Just Joined
  • PipPip
  • 21 posts

Posted 05 November 2008 - 01:10 PM

sorry need better explanation, for the columns it is quantity, description, value, and make/model, so i would have to say the double(type of variable) is going to be value and quantity(though i know no one would put a .1 for quantity). and the string of course would be description and make/model. hopefully that clears : )

Sorry last thing i want to add, the form 2 which has the textboxes, also has a button, so when the user clicks on the button, the textbox fields which have information are suppose to be populated in the correct columns, do i add the

listview1.items.add(lvi);

do I add that code into the button?


I think you should work with DataGridView instead of ListView. LV doesn't work for you at all. Search MSDN for "DataGridView" and you will get some great samples of it.
For your 2nd question, you need only to set the fields and close the 2nd form, that's all. Values will automatically pass to the 1st form.
  • 0

#14 Siten0308

Siten0308

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 298 posts

Posted 05 November 2008 - 03:46 PM

Light bulb, it clicked, thank you i got it. sorry for the confusion. :)
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download