我有一个 HeaderFile Common_Datas.h
//Common_Datas.h
public ref class MyDBDatas
{
//blah...blah...blah...
public: static System::Void Material_Name( System::Object^ Sender, System::Windows::Forms::KeyEventArgs^ e) {
//blah...blah...blah...
}
public: static System::Void Supplier_Name( System::Object^ Sender, System::Windows::Forms::KeyEventArgs^ e) {
//blah...blah...blah...
}
};
现在从我的 Form2 - textBox2 我想声明
textBox2->KeyDown += gcnew KeyEventHandler(MyDBDatas, &MyDBDatas::Supplier_Name);
- 我没有得到上面的线......
另外我想学习相同的语句,如何在“代表”语句中使用?
谢谢...