-1
我寫了這段代碼,但是當我運行它時,調試器提示我「DragDrop註冊沒有成功。」在FormAdver.show();線,我該如何解決它?問題形式顯示
public void ResiveFunc(string FuncResive)
{
string FuncName = "";
string FuncValue = "";
for (int i = 0; i <= 2; i++)
{
FuncName += FuncResive[i];
}
for (int j = 4; j <= FuncResive.Length - 1; j++)
{
FuncValue += FuncResive[j];
}
MessageBox.Show(FuncName);
MessageBox.Show(FuncValue);
if (FuncName == "TAB")
{
Form1 mainForm = new Form1();
frmAddver formAddver = new frmAddver();
formAddver.Show();
mainForm.AdverFilter(FuncValue);
}
}
可能重複(http://stackoverflow.com/questions/4769915/problem-with-multi-threaded-invocation) – 2011-01-23 12:45:27