How can I save any information added or deleted from any listbox when the user exits the program?
How can I make just one line in a listbox turn red with a command button?
When the X button is pressed how can I make it require a password for the program to quit?
How can I make a item in a listbox show information in a textbox and listbox? The textbox would contain the users name associated with the item selected. And the listbox would contain what books the user has out including the one they have selected that brings up all this information!
This would complete my library program, so I thank everyone who will answer ALOT!!!!
Last edited by FBI_11; Oct 23rd, 2002 at 06:13 AM.
How can I save any information added or deleted from any listbox when the user exits the program?
==> Use a database or store the info in a delimited text file or the registry
How can I make just one line in a listbox turn red with a command button?
==> Not easily. Consider using a ListView instead.
When the X button is pressed how can I make it require a password for the program to quit?
==> (A password to exit - VERY unusual) Put code in the form's QueryUnload event. Do a forum search for QueryUnload and you'll find a lot of examples.
How can I make a item in a listbox show information in a textbox and listbox? The textbox would contain the users name associated with the item selected. And the listbox would contain what books the user has out including the one they have selected that brings up all this information!
How can I make a item in a listbox show information in a textbox and listbox? The textbox would contain the users name associated with the item selected. And the listbox would contain what books the user has out including the one they have selected that brings up all this information!
Originally posted by MartinLiss
==> (A password to exit - VERY unusual) Put code in the form's QueryUnload event. Do a forum search for QueryUnload and you'll find a lot of examples.
In the Form_QueryUnload event, put some sort of a prompt to enter the password then:
if password = correct then
cancel = vbFalse
else
cancel = vbTrue
end if
Mr. FBI,
just in case you couldn't figure it out here's a quick sample project excluding ForeColor for individual items (use Aaron's snippet code). So check attachments and enjoy it.