column headers Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lee123
    Contributor
    • Feb 2007
    • 556

    column headers Question

    Question (1)
    is it possible to add column headers in a listbox for visual basic 6 and if you can how would you do it in code.

    Question (2)
    also in access they use a "Dmax" and a "DMin" does visual basic have anything like that or a substitute

    lee123
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    hi!

    (1) i dont have VB6 installed anymore, but for many VB versions the COLUMNHEADS property will do...

    (2) i dont know what DMax or DMin it do, but there is the Math.Max and Math.Min function in many VB versions...perh aps it could help... (im not sure if it would work in VB6 neither)

    HTH

    Comment

    • lee123
      Contributor
      • Feb 2007
      • 556

      #3
      Well I have tried to do the columnheaders for the list box but i can't figure it out i have sufred the web but can't seem to find it. i would try a list view but nobody seems to know anything about it. and if i could do it in a connection string like (DAO or ADO) i would but i can't find them either is there anyone who knows this

      lee123

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        the following link might help you to use listview with database.

        link

        Comment

        • simonrule
          New Member
          • Mar 2009
          • 6

          #5
          help me please

          Originally posted by debasisdas
          the following link might help you to use listview with database.

          link
          I can make a thread can you help me

          Comment

          • lee123
            Contributor
            • Feb 2007
            • 556

            #6
            try this link:


            and the where you can find this is at the top of the questions page there is a link that says "ANSWERS" click on that.

            lee123

            Comment

            • lee123
              Contributor
              • Feb 2007
              • 556

              #7
              OOPS, ten find the button that says "NEW THREAD" Click on that

              lee123

              Comment

              • kadghar
                Recognized Expert Top Contributor
                • Apr 2007
                • 1302

                #8
                Originally posted by lee123
                Well I have tried to do the columnheaders for the list box but i can't figure it out i have sufred the web but can't seem to find it. i would try a list view but nobody seems to know anything about it. and if i could do it in a connection string like (DAO or ADO) i would but i can't find them either is there anyone who knows this

                lee123
                Yes sorry, my mistake, I dont know why COLUMNHEADS is a property i've only found on VBA listboxes... perhaps they should add it to other versions...

                anyway, if you have VStudio, im pretty sure you can create custom controls. A List Box with heads shouldnt be such a big deal.

                Comment

                • Stewart Ross
                  Recognized Expert Moderator Specialist
                  • Feb 2008
                  • 2545

                  #9
                  Originally posted by lee123
                  Question (2)
                  also in access they use a "Dmax" and a "DMin" does visual basic have anything like that or a substitute
                  Hi. The domain aggregate functions are not available directly in VB. You can, however, refer to them from within an SQL statement executed in code on a database object created in VB, as this (now very out-of-date) MS Support article for an old version of VB indicates.

                  http://support.microsoft.com/kb/102479.

                  -Stewart

                  Comment

                  Working...