Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access/ Office 2016, 2013, 2010, and 2007 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!

Separate version for Access/Office 2003, 2002, and 2000.

Separate version for:
Access 97/95

View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?


"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP




Microsoft Access, Office/VBA, VB6 Modules royalty-free source code libraryMicrosoft Access Modules royalty-free source code libraryMicrosoft Access VBA and VB6 Module Library Free trial of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA

Module: ToolBar in Category Microsoft Visual Basic 6 : Controls from Total Visual SourceBook

Routines for manipulating toolbars in VB6.

Set the toolbar to the flat style, the same style as Visual Basic toolbars. This functionality is not built into the Windows Common Control ActiveX Control.

Procedure List

Procedure Name



(Declarations) Declarations Declarations and private variables for the modToolBar module
SetToolBarFlat Procedure Set a toolbar to the flat style
FlatToolBarEnumChildProc Procedure Callback routine for EnumChildWindows. This function should never be called directly by user code. See the Windows SDK for more documentation on this procedure

Example Code for Using Module: ToolBar

' Example of modToolbar
' To try this example, do the following:
' 1. Create a new form
' 2. Create a toolbar named 'ToolBar1'
' 3. Create a command button named 'cmdTest'
' 4. Paste all the code from this example to the new form's module.
' 4. Run the form

Private Sub cmdTest_Click()
  Static fFlat As Boolean

  fFlat = Not fFlat

  ' Example of SetToolBarFlat and 'flat' mode
  SetToolBarFlat Toolbar1, fFlat

End Sub

Private Sub Form_Load()
  Dim btn As ComctlLib.Button

  With Toolbar1
    Set btn = .Buttons.Add(, , "Button 1")
    Set btn = .Buttons.Add(, , "Button 2")
    Set btn = .Buttons.Add(, , "Button 3")
    Set btn = .Buttons.Add(, , "Button 4")
  End With

End Sub

Microsoft Access Module LibraryOverview of Total Visual SourceBook

The source code in Total Visual SourceBook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Additional Resources