Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • MSHFlexGrid bogs down

    1 answers - 1059 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Is it just me, or has anyone else noticed this too -- MSHFlexGrid
    really slows down when the grid is fairly large.
    I have a FG that is 31 rows by 25 columns. For test purposes, I'm
    populating it using nested loops, filling in one row at a time. The
    first row fills in almost instantaneously. By the time it is on row
    31, it takes almost 1/2 second. It takes 11 seconds to fill in the
    entire grid.
    Here is all that I'm doing:
    With FG2
    -- For ii=0 to 30
    For jj = 0 to 24
    .Row = ii
    .Col = jj
    .Text = ii + jj
    Next jj
    -- Next ii
    End With
    What's going on? Why is it getting slower and slower? Is there
    a better control to use?
    Spoo
    Yahoo! Groups Sponsor
    Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
    Yahoo! Groups Links
    <*To visit your group on the web, go to:
    <*To unsubscribe from this group, send an email to:
    @yahoogroups.com
    <*Your use of Yahoo! Groups is subject to:
  • No.1 | | 1781 bytes | |

    I don't know if it will help, but I have found that using the textmatrix
    property is faster than writing to the flexgrid itself. It is the same
    thing, but dealing with the memory instead of the actual grid. You also won
    t have to change the row and col each time either.
    textmatrix(row,col)=string

    Rick Rose

    Message

    From: spooboy54
    Date: 11/12/05 10:15:49
    To: visualbasic6programming (AT) yahoogroups (DOT) com
    Subject: [Visual Basic 6 programming] MSHFlexGrid bogs down

    Is it just me, or has anyone else noticed this too -- MSHFlexGrid
    really slows down when the grid is fairly large.

    I have a FG that is 31 rows by 25 columns. For test purposes, I'm
    populating it using nested loops, filling in one row at a time. The
    first row fills in almost instantaneously. By the time it is on row
    31, it takes almost 1/2 second. It takes 11 seconds to fill in the
    entire grid.

    Here is all that I'm doing:

    With FG2
    -- For ii=0 to 30
    For jj = 0 to 24
    .Row = ii
    .Col = jj
    .Text = ii + jj
    Next jj
    -- Next ii
    End With

    What's going on? Why is it getting slower and slower? Is there
    a better control to use?

    Spoo

    Yahoo! Groups Sponsor
    Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.

    Yahoo! Groups Links

    [Non-text portions of this message have been removed]

    Yahoo! Groups Sponsor
    Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.

    Yahoo! Groups Links

    <*To visit your group on the web, go to:

    <*To unsubscribe from this group, send an email to:
    @yahoogroups.com

    <*Your use of Yahoo! Groups is subject to:

Re: MSHFlexGrid bogs down


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Windows"

EMSDN.COM