Results 1 to 28 of 28

Thread: Remember the details........

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    Question Remember the details........

    I have two forms, one to add a password name, and password. The other to view password names through a list box, and a textbox to show the code. The idea is when i add text in the form that adds a new item, it puts it into the list box on the other form. (Which i have done like

    VB Code:
    1. frmPasswordStorer!lstMain.AddItem txtPasswordName.Text

    The question in hand though is, when i click the listbox, it shows the correct code in my textbox. How can that be done?

    If this is slightly confusing i will try and explain slightly more clear.

    THANKS

  2. #2
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    Re: Remember the details........

    Originally posted by Madboy
    I have two forms, one to add a password name, and password. The other to view password names through a list box, and a textbox to show the code. The idea is when i add text in the form that adds a new item, it puts it into the list box on the other form. (Which i have done like

    VB Code:
    1. frmPasswordStorer!lstMain.AddItem txtPasswordName.Text

    The question in hand though is, when i click the listbox, it shows the correct code in my textbox. How can that be done?

    If this is slightly confusing i will try and explain slightly more clear.

    THANKS
    Huh?

  3. #3

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Well you must be a fast reader or didnt read it properly to post back that quick after me just making the initial thread

  4. #4
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Madboy
    Well you must be a fast reader or didnt read it properly to post back that quick after me just making the initial thread
    Well...maybe you wont be getting an answer you rude a** muncher.


  5. #5

  6. #6
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: Remember the details........

    Originally posted by Madboy
    If this is slightly confusing i will try and explain slightly more clear.
    Echo Jon. Why don't you go ahead and do this?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  7. #7
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    List1.ListIndex will get you the selected item

    http://www.amazon.com/exec/obidos/tg...glance&s=books

    Look, only $12! BUY IT NOW BEFORE I STRANGLE YOU.

  8. #8

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Geez sorry

    Its just you couldnt have read my thread very clear to have read it in the space of 1 minute, and in that time replying.

    Basically this,

    You add an item to a listbox, when you click the listbox item it display the correct text for that item. Which was set by the other form.

  9. #9
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    Re: Re: Remember the details........

    Originally posted by ober5861
    Echo Jon. Why don't you go ahead and do this?
    Apparently I'm not the only DUMB one

    MadBoy...we are fast readers, and your question makes no sense...go ahead and reread it yourself

  10. #10
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Your 2nd form would have to be open in order for your idea to work.

    Instad, why not store the passwords in a texfile or database, and then load them into the listbox when the form to display them loads?

    If I am missing it, let me know...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  11. #11
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    List1.ListIndex will get you the selected item

    http://www.amazon.com/exec/obidos/t...nce&s=books

    Look, only $12! BUY IT NOW BEFORE I STRANGLE YOU.

  12. #12
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    stop spamming.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  13. #13
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Originally posted by Madboy
    Geez sorry

    Its just you couldnt have read my thread very clear to have read it in the space of 1 minute, and in that time replying.

    Basically this,

    You add an item to a listbox, when you click the listbox item it display the correct text for that item. Which was set by the other form.
    Is the "correct text" the text that is selected in the listbox?

  14. #14

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Thats what i would hope to do anyway james, read it from a text file (i want to save the listbox list in a text file when the app is closed). and then find out the item which was clicked, just dont know how.

    Thanks James,

    For nkad and some others, what is your problem?! I have done nothing to you, so stop jumping on my face[edited by moderator]GEEZ

  15. #15

  16. #16
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    chill out homeslice. We're not jumping you. You have just been posting a lot of stuff that seems like you haven't really thought it through. Slow down. Take a second look. Install MSDN.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  17. #17

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Ok, as simple as can be (This aint spamming ober).

    Form1 - contains

    Text1
    List1

    Form2 - contains

    Text1
    Text2

    I load Form2, type text in Text1 (Password Name) which is sent to List1 in the other form. I type text in Text2 which is the Password Code. I now close this form, and return to Form1

    List1 is now populated with the item(s) i entered in Form2. When i click List1, it should show text in Text1. This is the password.

    Does this make anymore sense?

  18. #18
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    Madboy, first off...

    list1.listindex WILL GET YOU THE SELECTED ITEM

    Second, That book on amazon, trust me, you can't fail with it.

    Third, I've seen your programs and I know you can do better then this. It just looks bad when you constantly ask the simplest of questions when the answers are teeming at your fingers, e.g. seach vbforums, use search engines, use the damn msdn!

    forth, I really am a nice guy

  19. #19

  20. #20
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Originally posted by Madboy
    Ok, as simple as can be (This aint spamming ober).
    I wasn't talking to you, buddy
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  21. #21

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Ok, yes i know thats what that does,

    Secondly i have that book

    Thirdly yes those programs were bad, but in all honestly were rush finish, i was just keen to get something on my new website. And how do you know whether i have or have not searched? Thats what i always do (normally) spend a few minutes browsing. And my current program is a File Manager program which features:

    Shell Manager
    Edit,Copy and Rename files
    Password Storer (which is what i need help on)
    File Browser, Quick and Advanced Search

    And more!

    Thanks anyway, and sorry marty, i just dont appreciate it when people try putting me down. And ober you called this spamming, you are just as bad as me for replying. And if i was spamming i wouldnt spend over 5 minutes typing each message. Im not a sad low life you know

  22. #22
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    You all sound like my cousin:


    link dead

    She doesn't cry that much!!!

    Also ober wasn't referencing you he was referencing the stupid 12 dollar book!!!!

    Last edited by jhermiz; Dec 10th, 2003 at 12:23 PM.

  23. #23

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    ok ober sorry dude, is there a way to clear all these posts and start again? Its been a waste of a thread.

    Anyway m,arty here is the code i got for getting the text in Form 2 to to the list in Form1:

    frmPasswordStorer!lstMain.AddItem txtPasswordName.Text

    Im off for me tea now, hopefully everyone including me will cool down. Ill start off with a few tinnies

  24. #24
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Originally posted by Madboy
    ...Thanks anyway, and sorry marty, i just dont appreciate it when people try putting me down. And ober you called this spamming, you are just as bad as me for replying. And if i was spamming i wouldnt spend over 5 minutes typing each message. Im not a sad low life you know
    ober was referring to the link in nkad's post and not you.

  25. #25
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    Ok I dont undrestand. I infact HAVE that book and it tells you EXACTLY how to use ALL of those questions you have been asking. Do you not like books?

    P.S. I know your not a low life. Just an eager VB n00b (Yeah, we all were/are)

  26. #26

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Wel im not one for books, i have Sams Teach yourself Visual Basic and Visual Basic 6 Complete. Dont seem to help me though, its all way too confusing, I usually do try things on my own, thats the only way to learn. But come on, you must admit it is easier getting help online. I wouldnt be this far if i tried things my self and without your lots help. And Nkad, not been bad or anything, but 80% of the replies you make to me are totally unlrelated to the subject

  27. #27
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by nkad
    Ok I dont undrestand. I infact HAVE that book and it tells you EXACTLY how to use ALL of those questions you have been asking. Do you not like books?

    P.S. I know your not a low life. Just an eager VB n00b (Yeah, we all were/are)
    Books would require reading...who wants to read!

  28. #28
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by Madboy
    Wel im not one for books, i have Sams Teach yourself Visual Basic and Visual Basic 6 Complete. Dont seem to help me though, its all way too confusing, I usually do try things on my own, thats the only way to learn. But come on, you must admit it is easier getting help online. I wouldnt be this far if i tried things my self and without your lots help. And Nkad, not been bad or anything, but 80% of the replies you make to me are totally unlrelated to the subject
    NOW that was funny...80%...good rep you have nkad.

    Ok no more i piss further than you piss..otherwise Marty is going to DLookup your arse and delete all of you!

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