When using a basic form application in C# I am having trouble accessing the variabels within it.
因此,原为第一类。
public partial class pingerform : Form
{
..
..
private System.Windows.Forms.TextBox textBox2;
public string textBox2Text
{
get { return textBox2.Text; }
set { textBox2.Text = value; }
}
之后,在主要应用中,我已经提出过。
Application.Run(new pingerform());
...
...
pingerform.textBox2Text.text() = str;
但我被告知,没有反对意见。
Error 1
An object reference is required for the non-static field, method, or property pingerform.textBox2Text.get C:Usersaaron.streetDocumentsVisual Studio 11ProjectsPingDropPingDropProgram.cs 54 21 PingDrop
因此,我认为,我会把歌唱成静态,但我会胜过吗?
Error 1
Cannot create an instance of the static class PingDrop.pingerform C:Usersaaron.streetDocumentsVisual Studio 11ProjectsPingDropPingDropProgram.cs 21 29 PingDrop
我如何利用这些财产的形式,具体介绍形式,
我的背景已经成熟,我想定期更新以表格形式定期提交的文本?
卡车
页: 1