We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to dispose an instance of the SfTextBoxExt control by using the Dispose method?

The memory of a control can be managed by using the GarbageCollector that releases the memory stored in the Heap. Sometimes the unmanaged resources like stream reader, stream writer, DataBase connectivity, etc. when used causes further leaks in the memory of a control. To free these unmanaged resources, you can use the Dispose method.

Dispose Method:

The dispose method is available in the IDisposable interface and it is used for the controls that implement the IDisposable interface and its signature is as follows:

C#

  1. The following is an example of using the Dispose method for the SfTextBoxExt control to release the unmanaged resources.

XAML

  1. The following code example shows how to create a SfTextBoxExt in a new Window.

XAML

  1. The following code explains using the Dispose Method for the SfTextBoxExt control:

C#

 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
4018 02/13/2015 02/13/2015 WPF SfTextBoxExt 4.5.1 12.4.0.24
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.