如何使用VB在Windows窗体上显示值。净 [英] How to display value on the windows form using VB. net
本文介绍了如何使用VB在Windows窗体上显示值。净的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经采用了Windows窗体并尝试在表单上打印输入值(来自inputbox),但我不能 - 我已经在下面给出了代码。
公共 类 EvenCheck_Input_Box
私有 Sub Button1_Click( ByVal sender < span class =code-keyword> As System。 Object , ByVal e As System.EventArgs)句柄 Button1.Click
Dim n As Integer
n = InputBox( 输入范围:)
' 德布ug.WriteLine(输入值为:& n)
打印(n)
结束 Sub
结束 类
解决方案
您必须阅读有关Windows窗体的教程,例如,请参阅VB。网络 - 标签控制 [ ^ 一>]。
I have taken a windows form and tried to print the input value (from inputbox) on the form but I can't -- I have given the code at below.
Public Class EvenCheck_Input_Box
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim n As Integer
n = InputBox("Enter the range: ")
'Debug.WriteLine("Inputted Value is: " & n)
Print(n)
End Sub
End Class
解决方案
You have to read a tutorial on Windows Forms, see, for instance, "VB.Net - Label Control"[^].
这篇关于如何使用VB在Windows窗体上显示值。净的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文