Results 1 to 5 of 5

Thread: Option Strict On causing error

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2021
    Posts
    191

    Option Strict On causing error

    Hi All.. when I use Option Strict On with this code, I get errors. Can someone please tell me what is wrong with this code?

    Code:
    Dim dynamicButton As New Button
    dynamicButton.Location = New Point(Me.PictureBox2.PointToClient(MousePosition))
    The error shows on the 'Point' in New Point. I am not sure how to fix that.
    Attached Images Attached Images  
    Last edited by mikeg71; Apr 2nd, 2021 at 09:43 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width