错误信息:ActiveX controls only accept fonts that are defined in GraphicsUnit.Point.
Parameter name: font
有下列几种情况:
1、把Active Control直接拉到窗体,Visual Stadio 2005直接退出;
2、把代码放到窗体OnLoad中,就出现上述问题。
该问题在VS2003中未出现过。
应该是font的问题,但我没有找到解决方法。
曾经使用
axPBar1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)0));
问题依旧存在。