Microsoft Visual Basic Data Control and Image List


Data Control

 

component to access the data with in your database with out resorting to file record commands


example :


     .databasename - name of database


    .connect - database type or format


    .recordsource - select table based on the .databasename


    datafield - particular field name


    datasource - data conatrol (name) which was created earlier




Image List


a control which is part of Microsoft Windows common control for version 5.0 and work's with Tool Bar control as well


Note:


image list control - handle's the image or icons of the Tool Bar


Tool Bar control - handles the interface of the Bar itself


example :


  • insert MS Windows common control
  • select imagelist control
  • goto (custom)
  • insert proper icons you like
  • select ToolBar control
  • select the imagelist

        - put target

        - imagelist control

  • border style - set to 1
  • goto buttons
  • click on "insert button"

        - will depend on the no. of

        - buttons you will have

  • Menu item code

private sub ToolBar_buttonclick (byval button as comctllib.button)


dim irest as integer


select case button.key

        case is = "files"

           ....

           ...

        case is = "comm"

           ....

           ..

        case is = "sales"

           ....

           ...

end select


....

...

...