VB.net中的打印问题 [英] Print problem in VB.net

查看:76
本文介绍了VB.net中的打印问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要在VB.net中打印的代码.我的打印工作没有问题,但是有一个绿色下划线的部分,警告"DialogResult = OK".


为什么DialogResult = OK用绿色加下划线?仅此下划线的印刷工作使我感到困惑

警告是:通过实例访问共享成员,常量成员,枚举成员或嵌套类型;合格的表达式将不会被评估.

I have a code to print in VB.net. I don''t have any problem with the printing as it works, but there is a part which is underlined by green, a warning on "DialogResult = OK".


Why the DialogResult = OK is underlined by green colour? The printing work only this underline is making me puzzled

The warning is: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.

推荐答案

重建您的应用程序:它应该消失了.
如果没有,请查看错误列表窗格:在警告"下应该有一条引用该消息的消息
Rebuild your app: it should go away.
If it doesn''t then look at the error list pane: you should have a message that refers to it under "Warnings"


尝试使用完全限定的名称,即

System.Windows.Forms.DialogResult.OK,因为您的表单还具有DialogResult属性

这应该有帮助
Try using the Fully Qualified Name ie

System.Windows.Forms.DialogResult.OK as your Form also has a DialogResult property

This should help


这篇关于VB.net中的打印问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆