我有一个功能,private void sentEmail()
在Form1
。我想用这个函数来处理InputBox中的标签。创建标签点击输入框
,我使用InputBox是这样的:http://www.csharp-examples.net/inputbox/
我创造一个新的类,并添加的InputBox的代码。
在我的InputBox创造标签:
Label label2 = new Label();
label2.Text = mesaj;
label2.Cursor = Cursors.Hand;
现在我需要做这样的:当出现的InputBox会,到时我会点击label2
,使用的功能,从Form1
。 label2
是一个文本recive密码,功能工作,但我需要使用InputBox中的功能,但我不知道如何做到这一点。 我认为我需要创建一个新的处理程序,但我不知道如何。
非常感谢你!完美的作品! – AnDr3yy 2012-08-01 08:54:18