Results 1 to 8 of 8

Thread: [RESOLVED] MSFlexGrid

  1. #1

    Thread Starter
    Hyperactive Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    464

    Resolved [RESOLVED] MSFlexGrid

    I am using an MSFlexGrid control with 2 columns
    The number of entries can change from 1 to whatever (less than 200). I know the number of entries I have before I populate the grid. If the number of entries will fit in the grid, based on the grid.height property value, the display is fine. However, if the number of entries is large enough that the vScrollbar displays, then I can get a black space below the last entry, when scrolling.

    How do I stop the scroll so that black area is not revealed?

    Thanks

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    8,018

    Re: MSFlexGrid

    1-have you looked for Krool's vbFlexGrid control (in the Forum CodeBank)?...pretty darn good replacement for the VB5/6 flexgrids (MS and MSH).
    Last edited by SamOscarBrown; Jun 30th, 2021 at 01:40 PM.
    Sam I am (as well as Confused at times).

  3. #3
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    8,018

    Re: MSFlexGrid

    in YOUR Grid, are you referring to the BackColorBkg property of the Grid? IOW, are you seeing a little bit of that background below your last entry?

    EDIT...change the BackColorBkg property to RED (vbred, or select from the properties itself and pick the red BG). NOW, do you see a RED area instead of a 'black'?
    Last edited by SamOscarBrown; Jun 30th, 2021 at 01:45 PM.
    Sam I am (as well as Confused at times).

  4. #4
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,125

    Re: MSFlexGrid

    The simple solution is to change the BackColorBkg to the same thing as the BackColor. Also, as with all the grid functions, you should adjust the size of the grid so that the grid boxes fit evenly within the control.

    J.A. Coutts

  5. #5
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    8,018

    Re: MSFlexGrid

    That is correct, couttsj, I just don't know if that is to what OP is referring...only ASSUME so.
    Sam I am (as well as Confused at times).

  6. #6

    Thread Starter
    Hyperactive Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    464

    Re: MSFlexGrid

    change the BackColorBkg to the same thing as the BackColor.
    This worked great. So simple, yet so elusive.

    Thanks

  7. #7
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    8,018

    Re: [RESOLVED] MSFlexGrid

    But, I still recommend you check out that VBFlexGrid. Could save you some other elusiveness in the future.
    Sam I am (as well as Confused at times).

  8. #8

    Thread Starter
    Hyperactive Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    464

    Re: [RESOLVED] MSFlexGrid

    Yes, I will

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