How to access form objects from another cs file in C#

前端 未结 5 674
广开言路
广开言路 2020-12-29 15:15

In the form.cs file I have two buttons,a memo and a timer.My question is: How do I access the timer or the memo from another cs file?

I\'ve tried to make the objects

5条回答
  •  借酒劲吻你
    2020-12-29 15:45

    The intuitive option is simply to make the control field public Here is a very good solution to solve this issue..

    http://searchwindevelopment.techtarget.com/answer/In-C-how-can-I-change-the-properties-of-controls-on-another-form

提交回复
热议问题