[Child]
public delegate int TR_비밀번호_확인_Handler(string 계좌번호, string 비밀번호);
public event TR_비밀번호_확인_Handler TR_비밀번호_확인_event;
[Parent]
user_계좌정보1.TR_비밀번호_확인_event += TR_비밀번호확인;
Thread 내부에서의 Invoke
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(delegate ()
{
당일연산실행_event("KRX", "stock_data2");
}));
}
else
{
당일연산실행_event("KRX", "stock_data2");
}