Results 1 to 26 of 26

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

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

    [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.4.21

    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 VBFLXGRD14.OCX Registration-Free. (Side-by-side)
    Keep in mind that this technology needs at minimum Windows XP SP2 or Windows Server 2003.

    Tutorial:
    The "Development" machine needs to register the VBFLXGRD14.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 VBFLXGRD14.OCX and the .exe (Std-EXE project) on the same folder.
    It will work then without any registration.

    The source code of "VBFLXGRD14SideBySide.res" is:

    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
       <file name="VBFLXGRD14.OCX">
          <typelib tlbid="{3E5D9624-07F7-4D22-90F8-1314327F7BAC}" version="1.0" flags="control" helpdir="" />
          <comClass clsid="{25017520-D6C7-473A-A17B-2DC89C44B84D}" tlbid="{3E5D9624-07F7-4D22-90F8-1314327F7BAC}" threadingModel="Apartment" progid="VBFLXGRD14.VBFlexGrid" />
          <comClass clsid="{3C1D9D59-7E05-496F-9F49-0ADD34002AE5}" tlbid="{3E5D9624-07F7-4D22-90F8-1314327F7BAC}" threadingModel="Apartment" />
          <comClass clsid="{3EAAE612-84B4-409B-83C1-F68BBF706DD7}" tlbid="{3E5D9624-07F7-4D22-90F8-1314327F7BAC}" threadingModel="Apartment" />
       </file>
    </assembly>
    Attached Files Attached Files
    Last edited by Krool; Jul 5th, 2020 at 11:41 AM.

  2. #2
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    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)
    Code:
    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Update released to version 1.1

    Quote Originally Posted by winman View Post
    using late-binding slows down the grid performance drastically compared to MSFlexGrid
    Did you also try
    Code:
    Dim objGrid As VBFlexGrid
    instead of
    Code:
    Dim objGrid As Object
    ?

  4. #4
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

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

    Yes, I did
    Here is the report of time taken in seconds for early bound and late bound VBFlexGrid and MSFlexGrid as in the code snippet below

    Case1: VBFlexGrid (early bound), time = 7.271313 s
    Case2: MSFlexGrid (early bound), time = 6.834063 s
    Case3: VBFlexGrid (late bound), time = 20.11294 s
    Case4: MSFlexGrid (late bound), time =7.252 s

    Code:
    Dim objGrid As VBFlexGrid   ' Case1
    
    'Dim objGrid As MSFlexGrid  ' Case2
    
    'Dim objGrid As Object  	 ' Case3
    'Set objGrid = VBFlexGrid1 ' Case3
    
    
    'Dim objGrid As Object	 ' Case4
    'Set objGrid = MSFlexGrid1  ' Case4
    
    
    Dim s as String
    
    With objGrid
        .Rows = 5000
        .Cols = 50
        For i = 0 To 4999
            For j = 0 To 49
                s = objGrid.TextMatrix(i,j))
            Next j
        Next i
    End With

  5. #5
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

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

    Hi Krool,

    I have checked the new update. It is really good
    The new sort options and the row/column autofit features are awesome and very useful

    I have also checked the speed for the late bound grid in the latest update. It is found to be same as the previous update. We have managed to use early bound VBFlexGrid for now. Any improvements in speed for the late bound grid would be of great use for our requirements here.

    Thank you

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Included LinkSwitch /OPT:NOWIN98 on the VBCompiler which reduced the file size of the OCX binary by about ~16KB

  7. #7
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009
    Location
    ITALY
    Posts
    1,695

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

    I've add a Spread class (made by FlyGuy) for in-cell editing and formulas (Excel-like)
    It seems that it works very well!
    Attached Files Attached Files

  8. #8
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    3,848

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

    Quote Originally Posted by gibra View Post
    I've add a Spread class (made by FlyGuy) for in-cell editing and formulas (Excel-like)
    It seems that it works very well!
    Hey thatís my nickname on XtremeVBTalk
    I bet you downloaded it from the FlexGrid functions thread.

  9. #9
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009
    Location
    ITALY
    Posts
    1,695

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

    Quote Originally Posted by Arnoutdv View Post
    Hey thatís my nickname on XtremeVBTalk
    I bet you downloaded it from the FlexGrid functions thread.
    Yes!
    Flexgrid functions - Xtreme Visual Basic Talk
    http://www.xtremevbtalk.com/code-lib...functions.html

    A lot of usefull routines.

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Version 1.3 released.

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Version 1.4 released.

  12. #12
    Hyperactive Member
    Join Date
    Jul 2013
    Posts
    374

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

    Hi Krool,

    I would like to replace C1 vsFlexGrid (that I use for years) with your VBFlexGrid as it seems to be up there with it.
    In vsFlexGrid I'm able to "replace" the standard EditWindow with a DateTimePicker by catching the StartEdit event and turn a previously created DTPicker visibility on, right over the cell (StartEdit is called with Row, Col, and Cancel parameters).
    I see that the event StartEdit doesn't exist in VBFlexGrid, thought there is a method with the same name. Will I be able to create a similar behavior with VBFlexGrid?

    Thanks
    Carlos

  13. #13
    New Member
    Join Date
    Nov 2018
    Posts
    5

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

    Can I add the attribute "GetColIndex" Property?


    Public Property Get GetColIndex(ByVal Key As String) As Long 'Add
    ''''''''
    End Property 'Add

  14. #14
    Addicted Member
    Join Date
    Jan 2010
    Posts
    181

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

    still amazed on how VB6 still popular out there, and still many support additional control. like me. I am one of VB6 programmer and really appreciate this kind of thread..keep it up

  15. #15

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Quote Originally Posted by smileyoufucn View Post
    Can I add the attribute "GetColIndex" Property?


    Public Property Get GetColIndex(ByVal Key As String) As Long 'Add
    ''''''''
    End Property 'Add
    There is already a ColIndex property available which just does what you suggested with your "GetColIndex".
    Code:
    Public Property Get ColIndex(ByVal Key As String) As Long
    Quote Originally Posted by Carlos Rocha View Post
    I would like to replace C1 vsFlexGrid (that I use for years) with your VBFlexGrid as it seems to be up there with it.
    In vsFlexGrid I'm able to "replace" the standard EditWindow with a DateTimePicker by catching the StartEdit event and turn a previously created DTPicker visibility on, right over the cell (StartEdit is called with Row, Col, and Cancel parameters).
    I see that the event StartEdit doesn't exist in VBFlexGrid, thought there is a method with the same name. Will I be able to create a similar behavior with VBFlexGrid?
    You can catch the BeforeEdit event (EditWindow not yet created) and set Cancel = True and turn on your own DTPicker.
    If you catch EnterEdit event it's already too late as EditWindow is created.
    Last edited by Krool; Apr 20th, 2020 at 02:55 AM.

  16. #16
    Hyperactive Member
    Join Date
    Jul 2013
    Posts
    374

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

    You can catch the BeforeEdit event (EditWindow not yet created) and set Cancel = True and turn on your own DTPicker.
    If you catch EnterEdit event it's already too late as EditWindow is created.
    Thanks, this info will save me lots of time.
    Carlos

  17. #17
    Addicted Member
    Join Date
    Jan 2010
    Posts
    181

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

    i have not use this grid before, right now i am focusing on LynxGrid, I tried your Grid before, but somehow the flexibility perhaps add ability for combobox to cell

  18. #18

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Quote Originally Posted by jedifuk View Post
    i have not use this grid before, right now i am focusing on LynxGrid, I tried your Grid before, but somehow the flexibility perhaps add ability for combobox to cell
    The following combo modes are available in VBFlexGrid:
    FlexComboModeNone (only EditWindow)
    FlexComboModeDropDown (DropDownList)
    FlexComboModeEditable (DropDownCombo)
    FlexComboModeButton (Custom)

  19. #19
    New Member
    Join Date
    Dec 2014
    Posts
    3

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

    Quote Originally Posted by gibra View Post
    Yes!
    Flexgrid functions - Xtreme Visual Basic Talk
    http://www.xtremevbtalk.com/code-lib...functions.html

    A lot of usefull routines.


    Hello Everybody

    Where I can I get the functions in
    http://www.xtremevbtalk.com/code-lib...functions.html

    The website seems to be offline.

    Thanks per advance

  20. #20
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    3,848

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

    @aklougbo you should have started your own thread for asking something which is not really related to your question.

    XtremeVBTalk is gone, no one knows why.
    There was no time for admins/mods to save the code libraries, everything is just gone.
    Anything specific you needed or wanted from that thread?

    The Internet Archive, Wayback Machinee saved parts

    Page 1:
    http://web.archive.org/web/201610070...functions.html

    Page 2:
    http://web.archive.org/web/201610070...nctions-2.html
    Last edited by Arnoutdv; Apr 21st, 2020 at 07:41 AM.

  21. #21
    Addicted Member
    Join Date
    Jan 2010
    Posts
    181

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

    Quote Originally Posted by Krool View Post
    The following combo modes are available in VBFlexGrid:
    FlexComboModeNone (only EditWindow)
    FlexComboModeDropDown (DropDownList)
    FlexComboModeEditable (DropDownCombo)
    FlexComboModeButton (Custom)
    waoww..never know about this, i am using lynxgrid for my app, might switch to vbflexgrid, last thing...vbflexgrid support filter (I supposed so), but i meant filterbar on top of grid, similar to componentone tdgbrid ...thanks

  22. #22
    Addicted Member
    Join Date
    Jan 2010
    Posts
    181

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

    Quote Originally Posted by Krool View Post
    The following combo modes are available in VBFlexGrid:
    FlexComboModeNone (only EditWindow)
    FlexComboModeDropDown (DropDownList)
    FlexComboModeEditable (DropDownCombo)
    FlexComboModeButton (Custom)
    i couldn't find any documentation or example regarding VBFlexGrid, any information ?

  23. #23
    New Member
    Join Date
    Dec 2014
    Posts
    3

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

    Quote Originally Posted by Arnoutdv View Post
    @aklougbo you should have started your own thread for asking something which is not really related to your question.

    XtremeVBTalk is gone, no one knows why.
    There was no time for admins/mods to save the code libraries, everything is just gone.
    Anything specific you needed or wanted from that thread?

    The Internet Archive, Wayback Machinee saved parts

    Page 1:
    http://web.archive.org/web/201610070...functions.html

    Page 2:
    http://web.archive.org/web/201610070...nctions-2.html



    Thank you very much.
    I still have to learn how to correctly post something on the forum.

  24. #24

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,558

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

    Quote Originally Posted by jedifuk View Post
    i couldn't find any documentation or example regarding VBFlexGrid, any information ?
    If you can read the first post you would notice that there is also a Std-EXE version.
    In that thread (first post) is a demo project showing the editing feature in one sub-form of the demo project.

  25. #25
    Addicted Member
    Join Date
    Jan 2010
    Posts
    181

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

    Quote Originally Posted by Krool View Post
    If you can read the first post you would notice that there is also a Std-EXE version.
    In that thread (first post) is a demo project showing the editing feature in one sub-form of the demo project.
    waoww...what a dumb i am..might check this right away..

  26. #26
    Addicted Member
    Join Date
    Jan 2010
    Posts
    181

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

    Quote Originally Posted by Krool View Post
    If you can read the first post you would notice that there is also a Std-EXE version.
    In that thread (first post) is a demo project showing the editing feature in one sub-form of the demo project.
    waoww...what a dumb i am..might check this right away..

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