2013-02-24 31 views
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) 

我对我的第二个节目工作过之后插入标签的值。

回答

0

你只需要使用标签的Text特性:多

"Carpet Waste in Sq. Yards = " & label1.Text 
+0

有时它只是简单的小东西.....谢谢! – 2013-02-24 16:31:28

相关问题