Question: I am trying to use GetThemeFont to read the font data from a visual style, but I can't seem to get it to return anything. Here is how I'm using it:

```
IntPtr h = OpenThemeData(this.Handle, "Button");
LOGFONT font = new LOGFONT();
int r = GetThemeFont(h, IntPtr.Zero, 1, 1, 210, out font);
CloseThemeData(h);

```

The return value is always "-2147023728" and font is always null. The place where I put 210 (for TMT\_FONT), I'm not really sure what to use there. Any help on this would be much appreciated.

Answer: 
b[1] no longer exists, and will be garbage collected.

You create array a.

You create array b.

when you say b=a you throw away the reference to array b.

b[1] and a[1] are now pointing at the same array.
In order to create a copy of *a* I would need to write

```
b=(int[])a.Clone();

```

Instead of

```
b=a;

```

because in C# arrays are reference types.