winform类型装换Unable to cast object of type'X'to type'System.Windows.Forms.Button'
心灵彩虹 2011-02-10 09:40:07 当运行到下面的程序时:
if (((Button)sender).Text == "启用(&F)")
{
ci.delmode = "1";
}
报错:
Unable to cast object of type 'X.001' to type 'System.Windows.Forms.Button'.
注明:X.001是页面的名称,请高手帮忙。