Results 1 to 3 of 3

Thread: [RESOLVED] Make a Listbox Behave like a Textbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    105

    Resolved [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:


    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

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    105

    Re: Make a Listbox Behave like a Textbox

    thas a very useful code ... tyvm bro, thas solved my prob

  3. #3
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Make a Listbox Behave like a Textbox

    Quote Originally Posted by -AmaN- View Post
    thas a very useful code ... tyvm bro, thas solved my prob
    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.
    Attached Files Attached Files
    Last edited by Edgemeal; Sep 14th, 2009 at 08:34 AM.

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