正常代码 Button1.Icon = Icon.Home
特殊情况:
private Icon GetIcon(strig icon){
return (Icon)Enum.Parse(typeof(Icon), icon);
}
Button1.Icon = GetIcon("Home");