How to add Command Button inside Listbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogitadesai
    New Member
    • Oct 2006
    • 2

    How to add Command Button inside Listbox

    Hi Group,
    How can I add a Command button inside a Listbox? I created a listbox and a command button on the form. now during the form_load event, I am trying to add command button to this listbox, but it does not work.. I am using VB 6. Since I am new to VB, can anyone help me in this regard..

    Thanks in advance..
  • Reena83
    New Member
    • Sep 2006
    • 32

    #2
    Originally posted by yogitadesai
    Hi Group,
    How can I add a Command button inside a Listbox? I created a listbox and a command button on the form. now during the form_load event, I am trying to add command button to this listbox, but it does not work.. I am using VB 6. Since I am new to VB, can anyone help me in this regard..

    Thanks in advance..
    Why are you trying to add a command button in your listbox???

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Hi there,

      Am not sure on how to do that, but am sure you can do that with a little of API magic, try searching in Google.com. Good luck & take care my fren.. :)

      Comment

      • yogitadesai
        New Member
        • Oct 2006
        • 2

        #4
        Originally posted by Reena83
        Why are you trying to add a command button in your listbox???
        I wanted to align the button having direction(up/down arrow) against every entry in the list. Since the contents of the list are dynamic, i was just curious to know whether its possible to add buttons in the listbox.

        Comment

        • Reena83
          New Member
          • Sep 2006
          • 32

          #5
          Originally posted by yogitadesai
          I wanted to align the button having direction(up/down arrow) against every entry in the list. Since the contents of the list are dynamic, i was just curious to know whether its possible to add buttons in the listbox.
          Hi Yogi...
          Did you mean to ask for the scroll function? Just lil confused here, coz usually when I get data from the database into a listbox when you have lots of data the scroll function is there! I'm just thinking right now perhaps thats what you were after!!!

          Comment

          Working...