表达式不会产生值。和逗号,')',或预期的有效表达式延续。 [英] Expression does not produce a value. and Comma, ')', or a valid expression continuation expected.

查看:209
本文介绍了表达式不会产生值。和逗号,')',或预期的有效表达式延续。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助她是我的代码

i need help her is my code

Public Class Forma
    Private printForm As Object
    Private Sub ProjectToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ProjectToolStripMenuItem.Click
        If ProjectToolStripMenuItem_Click(sender As Object, e As EventArgs) Then Form_load(FormB As Object)
        Me.printForm.Print
    End Sub
    Private Sub Form_load(FormB As Object)
        Me.printForm = FormB
    End Sub


End Class


但是现在我得到bc30491  Expression不会产生值。和bc32017 逗号,')'或预期的有效表达式延续。我该怎么办?

but now i'm getting bc30491 Expression does not produce a value. and bc32017 Comma, ')', or a valid expression continuation expected. what do i do?

推荐答案


我需要帮助她是我的代码

i need help her is my code

Public Class Forma
    Private printForm As Object
    Private Sub ProjectToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ProjectToolStripMenuItem.Click
        If ProjectToolStripMenuItem_Click(sender As Object, e As EventArgs) Then Form_load(FormB As Object)
        Me.printForm.Print
    End Sub
    Private Sub Form_load(FormB As Object)
        Me.printForm = FormB
    End Sub


End Class


但是现在我得到bc30491 表达式不会产生值。和bc32017 逗号,')'或预期的有效表达式延续。我该怎么办?

but now i'm getting bc30491 Expression does not produce a value. and bc32017 Comma, ')', or a valid expression continuation expected. what do i do?

也许这个?

    Private Sub ProjectToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ProjectToolStripMenuItem.Click
        Dim frm As New FormB
        frm.Show()
    End Sub


这篇关于表达式不会产生值。和逗号,')',或预期的有效表达式延续。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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