Using vb.net for an application i'm developing. During a backgroundworker routine, I have a semi-transparent overlay form over top with a progress bar and cancel button. However when I try to cancel I get the error: Object reference not set to an instance of an object.
How can I cancel a backgroundworker from another form? This is my code from the second (overlay) form.
Public Class CISMapOverlay
Private myParent As frmGMapNet
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadLabel2.Click
Public Sub New()
' This call is required by the designer.
Me.myParent = myParent
' Add any initialization after the InitializeComponent() call.