标签: c# forms winforms button
如何在单击确定按钮和名为DAIILY的表单
并以名为SALES的其他形式显示它并将其放在名为txtSUMMARY的文本框中?
答案 0 :(得分:0)
你可以试试这个。
首先使用Application.OpenForms获取打开的表单Sales,然后在DateTimePicker获取的值上设置txtSummary.Text:
{{1}}
确保在其“访问修改器”属性上将txtSummary文本框设置为public: