0

我试图在单击按钮时运行一系列方程式,然后在富文本框中显示行。

Private Sub SubmitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubmitButton.Click
    MessageBox.Show("Number of Estimates:$" & vbCrLf & "Grand Total of Estimates:$" & vbCrLf & "Average of Estimates:$")
    Estimates = +1
    SummaryRichTextBox.Text = "Carpet Waste in Sq. Yards =" & vbCrLf & "Underlay Waste in Sq. Yards=" _
& vbCrLf & "TackStrip Waste in Ft. =" & vbCrLf & "" & vbCrLf & "Number of Estimates =" _
& vbCrLf & "Accumulated Grand Total of Estimates ="
End Sub

这会显示句子部分,但我只是想知道如何让它在 = 之后插入标签的值

ex.
Label1= 10
Carpet Waste in Sq. Yards = (label1 value here)

我正在研究我的第二个程序。

4

1 回答 1

0

您只需要使用Text标签的属性:

"Carpet Waste in Sq. Yards = " &  label1.Text
于 2013-02-24T16:12:14.830 回答