[英]How to get the value of textbox in xcode and put it in C#
Soo I'm new to.我是新手。 programing in C#, and I wanted to ask how to get a value of a textbox in C# from macos.在 C# 中编程,我想问如何从 macos 中获取 C# 中文本框的值。
So my program is so easy I want to make a calculator, so I probably need 2 numbers to be entered from a textField, but I cant take the value from this action所以我的程序很简单我想做一个计算器,所以我可能需要从文本字段中输入 2 个数字,但我不能从这个动作中获取值
Note: I use C# on visual studio and I dont know how to Implemnt the value, so do we implemnt it from C# or from xcode "Objective-c"注意:我在 Visual Studio 上使用 C#,但我不知道如何实现该值,所以我们是从 C# 还是从 xcode "Objective-c" 实现它
所以答案是:首先要做的就是让它outlet比如名字是TextField1 然后说:
string d = TextField1.StringValue;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.