Hi
private void Form1_Load(object sender, EventArgs e)
{
axMSFlexGrid1.FixedCols = 0;
axMSFlexGrid1.FixedRows = 0;
axMSFlexGrid1.Rows = 5;
axMSFlexGrid1.Cols = 5;
for (int i = 1; i <= 5; i++)
{
for (int j = 1; j <= 5; j++)
{
axMSFlexGrid1.set_ColWidth(j-1, 600);
axMSFlexGrid1.set_RowHeight(i-1, 600);
axMSFlexGrid1.Col = j - 1;
axMSFlexGrid1.Row = i - 1;
axMSFlexGrid1.Text = j.ToString();
}
}
}
Error:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
I install MSFlexGrid as follow:
In your project's solution explorer:
Right-click on References
Select Add Reference
Select the COM tab
Scroll down to and select Microsoft FlexGrid Control, click OK
In your Toolbox:
Right-click anywhere & select Choose Items...
Select the Comm Components tab
Check the checkbox next to Microsoft FlexGrid Control, click OK
You can now use it like any other control in your project, find it in the General section of your Toolbox.
Thanks for answer