CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2000
    Posts
    72

    please help me to add to collection.

    i created a class using classbuilder in a standard exe. the class had 3 properties
    num1(int),num2(int),str(string).
    i then added this class to a collection.
    my form has 3 textboxes, one for each type of data and a commandbutton
    and a listbox to view the added data.

    please tell how to add the data through the textboxes
    and display them in the list box.



  2. #2
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: please help me to add to collection.

    Use the following code

    List1.Additem text1.text
    List1.additem text2.text






  3. #3
    Join Date
    Jun 1998
    Posts
    6

    Re: please help me to add to collection.

    what coolily meant was howC to add into a collection?


  4. #4
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: please help me to add to collection.

    Dear Coolily,
    give me ur e-mail and I will send u an attached file.Perhaps that can help you
    Waiting.....
    Kamran.



  5. #5
    Join Date
    Jun 1998
    Posts
    6

    Re: please help me to add to collection.


  6. #6
    Join Date
    Jan 2000
    Posts
    72

    Re: please help me to add to collection.

    kamran,
    please send the attachment [email protected] please...
    regards
    coolily


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured