Consulting

Results 1 to 11 of 11

Thread: Solved: listbox/listview

  1. #1
    VBAX Regular
    Joined
    Sep 2005
    Posts
    78
    Location

    Solved: listbox/listview

    I am taking information from outlook inbox as

    to subject senton

    -- -- ---

    What should i use? list box or list view?
    I dont know how to add data to list box or listview
    If anyoneone has answer tell me.....

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hmm, is this a question or a test post?? I'm confused..

  3. #3
    VBAX Regular
    Joined
    Sep 2005
    Posts
    78
    Location
    I have used following code:

    first set view property of listview to report

     For Each Inboxmail In oinFolder.Items
    		Dim j As Integer
    		j = 1
    				 With ListView1.ListItems
    				 .Add j, , Inboxmail.To
    				 End With
    	   
    				 With ListView1
    				 .ListItems(j).SubItems(1) = Inboxmail.subject
    				 End With
    	   
    				 With ListView1
    				 .ListItems(j).SubItems(2) = Inboxmail.SentOn
    				 End With
    				 j = j + 1
    		Next

  4. #4
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Quote Originally Posted by firefytr
    Hmm, is this a question or a test post?? I'm confused..

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Looks like a misplaced question Zack and seems to be related to another post in this forum by the same person. Could be a misunderstanding caused by a language difference. Poster is from India. It could be a test though as the Solved part is part of the original title?
    Request the opportunity to try moving it to the Outlook forum if you decide to move it.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    The Solved part is quite particular. I'm wondering if the OP isn't trying to test out this feature.. If you feel it's related, go ahead and move it there, and delete my funky posts. If nothing else, we can always split it back again.

  7. #7
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Zack,
    I'll pm the poster first.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  8. #8
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    pm sent to poster
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  9. #9
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Thanks Steve.

  10. #10
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    It's been 2 weeks, no response.....
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  11. #11
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I think he re-submitted in Outlook forum.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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