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. Image for the cookie policy date

How do I delete an element?

I am building a WYSIWYG editor with the HTMLUI control. My problem is I can''t figure out how to delete an element from the document without a runtime error occuring... Below is the code I am using. I can''t find any information on this in the documentation or in the forums. If Not Me._elmSelected Is Nothing Then Me._elmSelected.Parent.Children.Remove(Me._elmSelected) Me._elmSelected = Nothing Me.HtmluiControl1.Refresh() End If

1 Reply

AD Administrator Syncfusion Team August 12, 2005 02:21 PM

Hi Todd, Please try running the sample linked to below at your end and let us know if it works. The sample uses the same approach as your code and works with the latest version: 32988_ForumRuntimeRemove_8664.zip Thanks, Davis

Loader.
Live Chat Icon For mobile
Up arrow icon