multiple solutions but there is no reason why this warning message appears.
currently Form does not allow to override Dispose() from component, movingmyClassInstance.dispose to Form.Dispose would have solved this problem but as of now either you can move this property to local to your method and suppress it.
#pragma warning disable IDE0069 // Disposable fields should be disposed
private MyClass myClassInstance = null;
#pragma warning restore IDE0069 // Disposable fields should be disposed