interop error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mcnewsxp

    #1

    interop error

    i get 'System.Runtime .InteropService s.COMException' occurred in
    axinterop.mshie rarchicalflexgr idlib.dll error on this line while trying to
    reset column sizes on a MSHFlexGrid:

    ..col = j

    when j = 2

    this is a vb6 to vb.net conversion.
    ???

    tia
    mcnewsxp


  • Peter Proost

    #2
    Re: interop error

    Maybe an out of bound column/row index?

    Greetz Peter Proost

    --
    Programming today is a race between software engineers striving to build
    bigger and better idiot-proof programs, and the Universe trying to produce
    bigger and better idiots. So far, the Universe is winning. (Rich Cook)

    "mcnewsxp" <mcourter@minds pring.com> schreef in bericht
    news:eloj$#oTGH A.4960@TK2MSFTN GP12.phx.gbl...[color=blue]
    > i get 'System.Runtime .InteropService s.COMException' occurred in
    > axinterop.mshie rarchicalflexgr idlib.dll error on this line while trying to
    > reset column sizes on a MSHFlexGrid:
    >
    > .col = j
    >
    > when j = 2
    >
    > this is a vb6 to vb.net conversion.
    > ???
    >
    > tia
    > mcnewsxp
    >
    >[/color]


    Comment

    • mcnewsxp

      #3
      Re: interop error

      > Maybe an out of bound column/row index?[color=blue]
      >[/color]
      what would be out of bounds?
      this works fine in VB6 and it works fine on another machine in VB.NET.


      Comment

      • mcnewsxp

        #4
        Re: interop error

        the grid is buit on the fly so i had to set the last column's size before it
        knew how many columns - so out of bounds was the right call.
        thanks.

        "mcnewsxp" <mcourter@minds pring.com> wrote in message
        news:uaz8NQpTGH A.424@TK2MSFTNG P12.phx.gbl...[color=blue][color=green]
        >> Maybe an out of bound column/row index?
        >>[/color]
        > what would be out of bounds?
        > this works fine in VB6 and it works fine on another machine in VB.NET.
        >
        >[/color]


        Comment

        • Phill  W.

          #5
          Re: interop error


          "mcnewsxp" <mcourter@minds pring.com> wrote in message
          news:eloj$%23oT GHA.4960@TK2MSF TNGP12.phx.gbl. ..[color=blue]
          >i get 'System.Runtime .InteropService s.COMException' occurred in
          >axinterop.mshi erarchicalflexg ridlib.dll[/color]
          [color=blue]
          > error on this line while trying to reset column sizes on a MSHFlexGrid:
          >
          > .col = j
          >
          > when j = 2[/color]

          Let me guess - let's face it; with an Exception like that you have to - you
          only have two columns. In .Net, they're indexed from 0, not 1.
          ..Col = 2 would refer to the /third/ visible column.

          HTH,
          Phill W.


          Comment

          • Peter Proost

            #6
            Re: interop error

            Hi that's the nice thing about the flexgrid, the obscure error messages :-)

            Greetz Peter

            --
            Programming today is a race between software engineers striving to build
            bigger and better idiot-proof programs, and the Universe trying to produce
            bigger and better idiots. So far, the Universe is winning. (Rich Cook)

            "mcnewsxp" <mcourter@minds pring.com> schreef in bericht
            news:OpFOjfpTGH A.5808@TK2MSFTN GP12.phx.gbl...[color=blue]
            > the grid is buit on the fly so i had to set the last column's size before[/color]
            it[color=blue]
            > knew how many columns - so out of bounds was the right call.
            > thanks.
            >
            > "mcnewsxp" <mcourter@minds pring.com> wrote in message
            > news:uaz8NQpTGH A.424@TK2MSFTNG P12.phx.gbl...[color=green][color=darkred]
            > >> Maybe an out of bound column/row index?
            > >>[/color]
            > > what would be out of bounds?
            > > this works fine in VB6 and it works fine on another machine in VB.NET.
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...