I managed to create a imagebox array and when the user chooses to make a 20 by 20 map it loads fine. But if the user chooses a 100 by 100 map size it crashes (error creating window handler). I know it's 10K image boxes but i have seen map editors that allow 100*100+ maps. So i'm wondering if there is a better way of displaying such a tile map. I figured most maps will be 50*50 except the world map, that one will be huge.
Obviously those tiles should be editable not fixed. Eventually i want to be able to select multiple tiles and edit the texture, collision, area level etc.
I also want to add that i'm not using the XNA winform approach on app hub so i have no acces to the spritebatch. The only thing i use from XNA is the:
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate;
and it serializes perfectly fine with this and a xna data library.
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
using (XmlWriter writer = XmlWriter.Create("f:/temp/testmap.xml", settings))
{
IntermediateSerializer.Serialize(writer, mapData, null);
}
Thanks,