How to add an event to a UserControl in C#?

后端 未结 6 2258
一向
一向 2020-11-27 05:04

I have a UserControl which contains 3 labels. I want to add an event for it, which occurs when the text of one of the labels changed.
I am using Visual Studio 2010

6条回答
  •  隐瞒了意图╮
    2020-11-27 05:35

    You must be declaring the event and delegate within the Namespace. Try to bring the code within the class Scope. It will run fine.

提交回复
热议问题