Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • MSHFlexGrid bogs down

    0 answers - 1591 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

    I didn't tell the whole story in my previous post. The
    grid is on a form, and the nested loops are in a module,
    so maybe that is adding a little time. In the module,
    the code reads as follows:
    With MyForm1.FG2
    -- For ii=0 to 30
    For jj = 0 to 24
    .Row = ii
    .Col = jj
    .Text = ii + jj
    Next jj
    -- Next ii
    End With
    Would this have any impact on execution time?
    Spoo
    In visualbasic6programming (AT) yahoogroups (DOT) com, "spooboy54"
    <spooboy54@ywrote:
    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
    Most low income households are not online. Help bridge the digital divide today!
    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: 2 + 1 =
QUESTION ON "Windows"

EMSDN.COM