VB兼容问题

Posted 温故余学

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VB兼容问题相关的知识,希望对你有一定的参考价值。

window7 64位无法显示打印窗问题

在Windows7 64位和VS2008环境下,PrintDialog.ShowDialog不能显示打印对话框

在VS2008中编写?如下代码:

PrintDialog printDialog = new PrintDialog();
printDialog.ShowDialog();
在??XP环境下,它可以正常显示出打印对话框。但在Windows 7 64位环境下,什么也显示不出来,也没有异常抛出。

将PrintDialog.?UseEXDialog属性设置为True,可显示出打印对话框。代码如下:

PrintDialog printDialog = new PrintDialog();
printDialog.UseEXDialog = true;
printDialog.ShowDialog();

这是VS2008的bug,并且此bug可能不会在VS2008上被修复。

 

以上是关于VB兼容问题的主要内容,如果未能解决你的问题,请参考以下文章