Non-invocable member cannot be used like a method?

前端 未结 4 1825
醉话见心
醉话见心 2020-12-16 08:42

I keep getting the following errors in my program:

\'System.Windows.Forms.TextBox.Text\' is a \'property\' but used like a \'method\'

and

4条回答
  •  旧巷少年郎
    2020-12-16 09:25

    As the error clearly states, OffenceBox.Text() is not a function and therefore doesn't make sense.

提交回复
热议问题