I'm using Mastering Visual Basic 2010 <book and it tells me...
In a button's Click event handler, declare two variables as follows:
Dim a As Single, b As Double
Then enter the following statements:
a = 1 / 3
Run the application, and you should get the following result in the Output window:
So I did:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As Integer, b As Double a = 1 / 3 Debug.WriteLine(a) End Sub End Class
I then debug and click the button and nothing even comes up... am I missing something or did he miss do something? I just don't understand and I mentally can't move on until I figure this out... Thanks!
Edited 6 Years Ago by cege: n/a