dcsimg
Page 9 of 9 FirstFirst ... 6789
Results 321 to 333 of 333

Thread: VBFlexGrid Control (Replacement of the MSFlexGrid control)

  1. #321
    New Member
    Join Date
    Aug 2019
    Posts
    3

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Krool View Post
    I don't understand. If you want to forbid cell's editing then set AllowUserEditing to False (Default)
    Nevermind. I found it already)
    But I have another question: can you add autosave of data from grid to database (like MS DataGrid 6.0) after changing cells.
    Last edited by SPB-667; Aug 10th, 2019 at 12:50 PM.

  2. #322

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by SPB-667 View Post
    But I have another question: can you add autosave of data from grid to database (like MS DataGrid 6.0) after changing cells.
    This a replacement for the FlexGrid control and not for the DataGrid control. There is no direct binding available in the MSFlexGrid control, so the VBFlexGrid doesn't either.
    However, in my opinion, it is anway better to have the database unbound to the grid. If you change something in the grid it's in your control what happens after that in the database.

  3. #323
    Junior Member
    Join Date
    Aug 2018
    Posts
    18

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Hi,

    I've tried this on 2 different machines, both Win 10 64bit, but the IDE just crashes when I run, compile or try to view MainForm.
    I've put the OLEGuids files in SysWOW64 and the IDE looks to find them OK. I have not registered them in any way. Just overwrote the old OLEGuids I had there.

    Any ideas?


    Update: removed "MainForm" and changed Sub Main() to show "UserEditingForm" instead and then the program runs fine.

    -Leifster
    Last edited by leifmb; Aug 29th, 2019 at 03:57 AM.

  4. #324

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by leifmb View Post
    I've tried this on 2 different machines, both Win 10 64bit, but the IDE just crashes when I run, compile or try to view MainForm.
    I've put the OLEGuids files in SysWOW64 and the IDE looks to find them OK. I have not registered them in any way. Just overwrote the old OLEGuids I had there.

    Any ideas?


    Update: removed "MainForm" and changed Sub Main() to show "UserEditingForm" instead and then the program runs fine.
    To be honest. I understanding nothing what you are describing.
    For me the MainForm works. And that only UserEditingForm works but not MainForm is an indication that it's not the VBFlexGrid's nor OLEGuids.tlb's fault.

  5. #325
    Junior Member
    Join Date
    Aug 2018
    Posts
    18

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    I guess it's something wrong with my VB6 setup/installation then. I've seen similar behavior once or twice before.
    Just tested on my 3rd VB6 machine and it has the very same problem :-(

    Off topic: There are many different guides on how to install VB6 on Windows 10, all with some variations. Is there a definitive guide somewhere?

  6. #326
    Frenzied Member
    Join Date
    Feb 2017
    Posts
    2,045

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by leifmb View Post
    I guess it's something wrong with my VB6 setup/installation then. I've seen similar behavior once or twice before.
    Just tested on my 3rd VB6 machine and it has the very same problem :-(

    Off topic: There are many different guides on how to install VB6 on Windows 10, all with some variations. Is there a definitive guide somewhere?
    I suggest to ask this question in the general forum.

    If it is of any comfort to you, from time to time (may be every two or three months) I need to uninstall and reinstall VB6 because I start to experience quasi random crashes of the IDE (I have Windows 10 - 64 bits).
    I usually also clean the registry with a registry cleaner after uninstalling and before reinstalling (but I don't know if that is necessary).

  7. #327

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Often I need to indicate "sort arrows".
    I would like to integrate such thing as a default in-built feature to reduce code lines on form level etc.
    Any suggestions how to look like and integration?
    I thought maybe with a .ColSortArrow property with enums None, Up and Down.
    But how to draw, default or app should provide picture? How to align? (Text truncate problem?)

    Thanks

  8. #328

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    The 'DataSource' property for reading ADO recordsets is now much faster reading the data.

    Instead of looping trough all records/fields, the .GetRows method is used to extract all into an array.

    In addition the cursor position does not need to be modified anymore as 'adBookmarkFirst' is used on .GetRows method.
    Last edited by Krool; Dec 23rd, 2019 at 12:56 PM.

  9. #329

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Updated released. (also for OCX)

    No VTable subclassing anymore at all. VTableSubclass.cls got removed.

  10. #330

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    OCX 1.4 released.

    Both versions are now in sync. (Std-EXE)

  11. #331
    Frenzied Member
    Join Date
    Sep 2012
    Posts
    1,856

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Krool View Post
    Updated released. (also for OCX)

    No VTable subclassing anymore at all. VTableSubclass.cls got removed.
    Hi Krool, Could you explain why the new subclassing is better?

  12. #332
    Frenzied Member
    Join Date
    Feb 2017
    Posts
    2,045

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by dreammanor View Post
    Hi Krool, Could you explain why the new subclassing is better?
    Hello, the explanation is in post # 2472 of the CCR thread.

  13. #333

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

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    Bugfix in the ShowLabelTips property.

    That property is intended to show tooltips on folded cells. However, it didn't show on fixed cells even though it was designed to work also on fixed cells.
    The small bug was in the internal GetLabelInfo function.

Page 9 of 9 FirstFirst ... 6789

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width