How do I set the My.Settings variable of type POINT in vb.net

Daniel McElhinney 120 Reputation points
2023-09-11T04:24:44.3166667+00:00
 Private Sub Form1_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
        Dim x As Integer = Me.Location.X
        Dim y As Integer = Me.Location.Y
        Dim ThisLocation As Point = New Point(x, y)

        'The following line of code is wrong
        My.Settings.FormPosition = ThisLocation.X, thislocation.y
    End Sub
End Class
Developer technologies | .NET | Other
Developer technologies | VB
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.