How to open a Tiled Map in a Windows Form (c#)

Hi, I just want to know if is it possible to open a map from Tiled in a windows form like in a pictureBox .
I know this isn’t the right place to do it but i’m in a Computer School in first grade so now we learn c# and Windows Form.

Yes you should be able to do draw it in a windows form

This is an image from the a tool created by Seanba.

You can download the project from the following repository.

It actually uses a picturebox to render the map

Look in Tiled2UnityViewer.cs for this line:

this.pictureBoxViewer.Image = Tiled2Unity.Viewer.PreviewImage.CreateBitmap(this.tmxMap, this.scale);

You can investigate further from that point.

Have fun! :wink:

1 Like