CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    help on listbox!!!

    i'd like to additem to a listbox simultaneously when i enter data into a textbox.what should i do?
    ie, i want 1 item added into a listbox when i enter text in a textbox till i go to the next textbox.i hope the question is clear enough.please help.


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: help on listbox!!!

    if you want the entire text from the text box in the listbox, then you could use the lost focus event for the text box:

    Sub Text1_LostFocus()
    ListBox1.AddItem Text1.Text
    End Sub




    Then you could duplicate this for the other text boxes as well. This event will fire when the use moves away from the text box indicating that they are done entering the data.

    Hope this helps,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Guest

    Re: help on listbox!!!

    no!!! i want to update both a listbox and textbox at the same time.


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

Featured