interop error

  • Thread starter Thread starter mcnewsxp
  • Start date Start date
M

mcnewsxp

i get 'System.Runtime.InteropServices.COMException' occurred in
axinterop.mshierarchicalflexgridlib.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
 
Maybe an out of bound column/row index?what would be out of bounds?
this works fine in VB6 and it works fine on another machine in VB.NET.
 
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 said:
i get 'System.Runtime.InteropServices.COMException' occurred in
axinterop.mshierarchicalflexgridlib.dll
error on this line while trying to reset column sizes on a MSHFlexGrid:

.col = j

when j = 2

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.
 
Hi that's the nice thing about the flexgrid, the obscure error messages :-)

Greetz Peter
 
Back
Top