Save WinForm or Controls to File

后端 未结 6 1973
旧巷少年郎
旧巷少年郎 2021-01-24 09:52

I have been working on an application which allows the user to make a label template for printing purposes by adding label controls to a panel(which I use as a container). I ha

6条回答
  •  别那么骄傲
    2021-01-24 10:26

    Try this. It uses the ISerializationSurrogate interface to get around the problem of the form object not being serializable:

    How to serialize an object which is NOT marked as 'Serializable' using a surrogate. http://www.codeproject.com/KB/dotnet/Surrogate_Serialization.aspx

提交回复
热议问题