Click here to Skip to main content
15,885,978 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

VB
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
Posted
Updated 12-Sep-15 9:29am
v2

1 solution

You have to read a tutorial on Windows Forms, see, for instance, "VB.Net - Label Control"[^].
 
Share this answer
 
Comments
Chandrakanta.Sen 12-Sep-15 15:38pm    
Thank you Sir, for your valuable feedback.
But I have a question that is it possible to print data values on the windows forms just like Visual Basic 6.0.
Please help me, on this matter, I will greatefull to you.


Thanks & Regards,
Chandrakanta Sen
Kolkata, India
CPallini 12-Sep-15 15:58pm    
In Windows Forms you either update a control Text property or use the Paint event to draw text on the form. That's all, as far as I know.
Chandrakanta.Sen 14-Sep-15 1:06am    
Thank you Sir, for your your valuable feedback.
Maciej Los 12-Sep-15 16:22pm    
+5!
CPallini 12-Sep-15 16:30pm    
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900