[RESOLVED] Make a Listbox Behave like a Textbox
Hey im making alil auction poster prog for myself and my buddies but i need help wid sumthing ... i get all my text added fine into the listbox but instead of being able to click in that area, i instead get a blue highlighted mark for any different line i selet on the listbox.
Heres wat i mean:
http://img24.imageshack.us/img24/5063/auctionposter.jpg
I Want to be able to click in the listbox and type sumthing into it
and also if u notice i have a button called "Generate Auction Post" ... everytime i click it ... it jus adds another auction in the listbox ... i want it to be such tat if i click "gen" and then l8r realize that i made a mistake in one of the textboxes ... i can jus edit that textbox and then hit gen again and the missing letter or miss-pelt gets corrected.
Ty for your help
Re: Make a Listbox Behave like a Textbox
thas a very useful code ... tyvm bro, thas solved my prob :D
1 Attachment(s)
Re: Make a Listbox Behave like a Textbox
Quote:
Originally Posted by
-AmaN-
thas a very useful code ... tyvm bro, thas solved my prob :D
Glad it helped.
Added a couple updates:
Fix: Code always assumed listbox had a vert scrollbar, now detects and sizes edit box accordingly.
Edit selected items using the F2 key also.
Escape key aborts edit.