Microsoft Composite UI App Block使用过程的问题收集(一)

来源:互联网 发布:mysql 5.7 配置 编辑:程序博客网 时间:2024/06/05 00:36

错误信息: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));
问题依旧存在。

 

原创粉丝点击