|
-
Dec 10th, 2003, 11:54 AM
#1
Thread Starter
Supreme User
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:
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
-
Dec 10th, 2003, 11:55 AM
#2
Banned
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:
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?
-
Dec 10th, 2003, 11:57 AM
#3
Thread Starter
Supreme User
Well you must be a fast reader or didnt read it properly to post back that quick after me just making the initial thread
-
Dec 10th, 2003, 11:58 AM
#4
Banned
-
Dec 10th, 2003, 11:59 AM
#5
I also don't understand your question.
-
Dec 10th, 2003, 11:59 AM
#6
Frenzied Member
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?
-
Dec 10th, 2003, 12:00 PM
#7
Fanatic Member
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.
-
Dec 10th, 2003, 12:01 PM
#8
Thread Starter
Supreme User
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.
-
Dec 10th, 2003, 12:01 PM
#9
Banned
Re: Re: Remember the details........
-
Dec 10th, 2003, 12:01 PM
#10
PowerPoster
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....
-
Dec 10th, 2003, 12:03 PM
#11
Fanatic Member
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.
-
Dec 10th, 2003, 12:04 PM
#12
Frenzied Member
-
Dec 10th, 2003, 12:04 PM
#13
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?
-
Dec 10th, 2003, 12:05 PM
#14
Thread Starter
Supreme User
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
-
Dec 10th, 2003, 12:09 PM
#15
Let's everyone cool it and stick with asking and answreting questions please.
-
Dec 10th, 2003, 12:09 PM
#16
Frenzied Member
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.
-
Dec 10th, 2003, 12:09 PM
#17
Thread Starter
Supreme User
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?
-
Dec 10th, 2003, 12:11 PM
#18
Fanatic Member
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
-
Dec 10th, 2003, 12:13 PM
#19
Please show the code that you are using to pass the data to Form1.
-
Dec 10th, 2003, 12:16 PM
#20
Frenzied Member
Originally posted by Madboy
Ok, as simple as can be (This aint spamming ober).
I wasn't talking to you, buddy
-
Dec 10th, 2003, 12:16 PM
#21
Thread Starter
Supreme User
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
-
Dec 10th, 2003, 12:18 PM
#22
-
Dec 10th, 2003, 12:19 PM
#23
Thread Starter
Supreme User
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
-
Dec 10th, 2003, 12:20 PM
#24
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.
-
Dec 10th, 2003, 12:20 PM
#25
Fanatic Member
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)
-
Dec 10th, 2003, 12:23 PM
#26
Thread Starter
Supreme User
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
-
Dec 10th, 2003, 12:24 PM
#27
Banned
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!
-
Dec 10th, 2003, 12:25 PM
#28
Banned
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|