I just ran into something weird. I always set my projects to Option Strict ON and Option Explicit ON.
I have a large project that has absolutely no problem with code similar to below. However, I just started a new project and now I get a build error that says "Option Strict On disallows implicit conversions from Double to Integer."
So my question is, with both projects set up the same, why does one allow this while the other will not?
I have a large project that has absolutely no problem with code similar to below. However, I just started a new project and now I get a build error that says "Option Strict On disallows implicit conversions from Double to Integer."
So my question is, with both projects set up the same, why does one allow this while the other will not?
vb.net Code:
Private Sub LoginFrm_Resize(sender As Object, e As EventArgs) Handles Me.Resize Me.LoginPanel.Location = New Point((Me.Width - Me.LoginPanel.Width) / 2, _ (Me.Height - Me.LoginPanel.Height) / 2) End Sub