求解书上一个简单程序,为什么会出错
visual吧
全部回复
仅看楼主
level 1
gateloway 楼主
就一个按钮,一个label,打开别人的一些程序,也会出现这样的问题,求具体解决方法
错误1重载决策失败,原因是没有可访问的“Show”能够不经收缩转换即可被调用:
'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': 与参数“owner”匹配的参数从“String”类型转换为“System.Windows.Forms.IWin32Window”类型。
'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': 与参数“text”匹配的参数从“System.Windows.Forms.MessageBoxButtons”类型转换为“String”类型。
'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': 与参数“caption”匹配的参数从“System.Windows.Forms.MessageBoxIcon”类型转换为“String”类型。
'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': 与参数“buttons”匹配的参数从“System.Windows.Forms.MessageBoxDefaultButton”类型转换为“System.Windows.Forms.MessageBoxButtons”类型。
'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': 与参数“caption”匹配的参数从“System.Windows.Forms.MessageBoxButtons”类型转换为“String”类型。
'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': 与参数“buttons”匹配的参数从“System.Windows.Forms.MessageBoxIcon”类型转换为“System.Windows.Forms.MessageBoxButtons”类型。
'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': 与参数“icon”匹配的参数从“System.Windows.Forms.MessageBoxDefaultButton”类型转换为“System.Windows.Forms.MessageBoxIcon”类型。F:\PRT VB2008\重载决策失败\重载决策失败\Form1.vb812重载决策失败
2018年02月07日 01点02分 1
1