[VB6] ActiveX VBFlexGrid (Replacement of the MSFlexGrid control)-VBForums
Results 1 to 2 of 2

Thread: [VB6] ActiveX VBFlexGrid (Replacement of the MSFlexGrid control)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2012

    [VB6] ActiveX VBFlexGrid (Replacement of the MSFlexGrid control)

    This is the ActiveX Control version that comes out of the Std-EXE version.

    Current version: 1.0.6

    The development state of the ActiveX Control version does not necessarily match to the Std-EXE version.
    That comes because the Std-EXE version is the "leading source" and the ActiveX Control version is derived from the Std-EXE version after a certain time.
    Reason why is that it is not practicable to release a new ActiveX Control after each new feature.
    However, certain bugfixes can and will be implemented into the current ActiveX Control version. (Revision)

    It is not recommended to use the source code to compile another binary.
    If own modification is necessary please rename the library to avoid redundancies.
    The source code of the project can also be viewed on GitHub.

    All controls are marked as "Safe for Initialization and Scripting" by the IObjectSafety interface.

    Also everything is 100% IDE-Safe.

    Here is a solution to use the VBFLXGRD10.OCX Registration-Free. (Side-by-side)
    Keep in mind that this technology needs at minimum Windows XP SP2 or Windows Server 2003.

    The "Development" machine needs to register the VBFLXGRD10.OCX as usual and use the components for e.g. in a Std-EXE project.
    The source project needs to include the Side-by-side resources. (see below)
    Then on the "End user" machine you only need the VBFLXGRD10.OCX and the .exe (Std-EXE project) on the same folder.
    It will work then without any registration.

    The source code of "VBFLXGRD10SideBySide.res" is:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
       <file name="VBFLXGRD10.OCX">
          <typelib tlbid="{F6375E4B-F242-4215-9DE7-94FF9F9AC599}" version="1.0" flags="control" helpdir="" />
          <comClass clsid="{47C04A76-B660-4A47-B7A6-B40348DAE67F}" tlbid="{F6375E4B-F242-4215-9DE7-94FF9F9AC599}" threadingModel="Apartment" progid="VBFLXGRD.VBFlexGrid" />
          <comClass clsid="{3ADFCC8E-C7A5-4833-B699-4B9340937918}" tlbid="{F6375E4B-F242-4215-9DE7-94FF9F9AC599}" threadingModel="Apartment" />
          <comClass clsid="{785EFC34-6CC2-4F5E-B454-D2DDDECE5368}" tlbid="{F6375E4B-F242-4215-9DE7-94FF9F9AC599}" threadingModel="Apartment" />
    Attached Files Attached Files
    Last edited by Krool; Feb 11th, 2018 at 09:43 AM.

  2. #2
    Addicted Member
    Join Date
    Oct 2008

    Re: [VB6] ActiveX VBFlexGrid (Replacement of the MSFlexGrid control)

    Hello Krool,
    I have just downloaded and tried your VBFlexGrid
    It is nice!
    However, using late-binding slows down the grid performance drastically compared to MSFlexGrid
    May I know the reason behind it? Also, what can be done to improve speed?

    The following code takes about 10 seconds to execute.( 10 times more than MSFlexGrid)
    Dim objGrid As Object
    Dim w as Long
    Set objGrid = VBFlexGrid1 'Grid added in design
    With objGrid
        .Rows = 5000
        .Cols = 50
        For i = 0 To 4999
            For j = 0 To 49
                w = objGrid.ColWidth(j)
            Next j
        Next i
    End With

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