X - Dispose rightway question?

Hi,
When floating the panel, I used the DockVisibilityChanged event to realize this, then if it closed I would close the form, but this time the screen was frozen and then application.quit (not only form)
How to close it properly?

here's my code:
Private Sub f_DocM_DockVisibilityChanged(sender As Object, arg As DockVisibilityChangedEventArgs) Handles f_DocM.DockVisibilityChanged
        Panel1.Dispose()
        panel2.Dispose()
        f_DocM.Dispose()
        Me.Close()
    End Sub

3 Replies

AI Anirudhan Iyyappan Syncfusion Team May 27, 2020 11:56 AM UTC

Hi The GridLock 
 
Thank you for contacting Syncfusion support. 

We have checked the reported query with our sample, but unfortunately we cannot replicate the mentioned issue in our sample. For further reference please see the sample and video below. 

 

If we have misunderstood any of your query, please let us know how you have customize your sample (or) please modify the sample above to replicate this issue and let us know your current version of Syncfusion Dll. It would be helpful for us to give you a solution as soon as possible. 
 
Regards,  
Anirudhan 



TG The GridLock May 28, 2020 05:50 AM UTC

Hi Anirudhan,
Thanks for the sample file, it will be of great help to me!


AI Anirudhan Iyyappan Syncfusion Team May 29, 2020 05:50 AM UTC

Hi The GridLock, 
 
Thanks for you update.  
  
It’s our pleasure to help you. Please let us know if you need any further assistance on this. We are happy to help you as always.  
  
Regards,  
Anirudhan 


Loader.
Up arrow icon