Create a new project, calling it, say, DataStructures. Then declare, within the DataStructures namespace, the following two classes.
namespace DataStructures
{
public class TestStruct
{
public struct Test_Struct
{
public string name;
public int code;
};
}
}
and
namespace DataStructures
{
public class TestArray
{
public static TestStruct.Test_Struct [ ] test_structs =
new TestStruct.Test_Struct [ 200 ];
}
}
Now in the two forms, use DataStructures as follows. Note that the example is Form1; Form2 code is the same.
using System.Windows.Forms;
namespace ArrayOfStructs
{
public partial class Form1 : Form
{
public Form1 ( )
{
InitializeComponent ( );
for ( int i = 0;
( i < DataStructures.TestArray.test_structs.Length );
i++ )
{
}
}
}
}
Hope that helps.