Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: textbox to listview

  1. #11
    pb_ce85's Avatar
    pb_ce85 is offline Newbie
    Join Date
    Jul 2008
    Posts
    21
    Rep Power
    0

    Re: textbox to listview

    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!!!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Re: textbox to listview

    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
    Code:
    listview1.items.add(lvi);
    do I add that code into the button?

  4. #13
    pb_ce85's Avatar
    pb_ce85 is offline Newbie
    Join Date
    Jul 2008
    Posts
    21
    Rep Power
    0

    Re: textbox to listview

    Quote Originally Posted by Siten0308 View Post
    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
    Code:
    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.

  5. #14
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Re: textbox to listview

    Light bulb, it clicked, thank you i got it. sorry for the confusion.

Closed Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Listview Help?????
    By jbnonn in forum C# Programming
    Replies: 3
    Last Post: 01-30-2011, 02:17 PM
  2. can fix it about listview
    By kiddies in forum Visual Basic Programming
    Replies: 2
    Last Post: 06-22-2010, 03:57 AM
  3. Help Using Listview
    By edge02 in forum Visual Basic Programming
    Replies: 2
    Last Post: 04-04-2010, 12:58 AM
  4. listview
    By Siten0308 in forum C# Programming
    Replies: 13
    Last Post: 12-12-2008, 09:14 AM
  5. ListView Help?
    By MXTECH in forum Visual Basic Programming
    Replies: 3
    Last Post: 11-17-2008, 12:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts