Do you really have a ListView control on your form? Do you mean DataGridView? Or what?
ListView is something like your windows desktop. You can put into it some icon-like items. What do you mean 2 doubles that user can add them? Can you explain more? I'm so confusing!!!![]()
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
do I add that code into the button?Code:listview1.items.add(lvi);
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.
Light bulb, it clicked, thank you i got it. sorry for the confusion.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks