Non-invocable member cannot be used like a method?

前端 未结 4 1831
醉话见心
醉话见心 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:40

    Where you've written "OffenceBox.Text()", you need to replace this with "OffenceBox.Text". It's a property, not a method - the clue's in the error!

提交回复
热议问题