Communicate between two windows forms in C#

后端 未结 12 1841
温柔的废话
温柔的废话 2020-11-21 04:40

I have two forms, one is the main form and the other is an options form. So say for example that the user clicks on my menu on the main form: Tools -> Options

12条回答
  •  自闭症患者
    2020-11-21 05:23

    This is probably sidestepping your problem a little bit, but my settings dialog uses the Application Settings construct. http://msdn.microsoft.com/en-us/library/k4s6c3a0.aspx

    I can't find a good example that's similar to how I do it (which is actually having an actual class+object), but this covers another way of doing it:

    Reading default application settings in C#

提交回复
热议问题