Adding to collection from controlDesigner only produces end tag for the collection.

D

Don

I have a customDesigner that adds to a collection in my control. For
some reason on the closing tag is added to the HTML view.

My control is called queryBuilder and has a collection called
ColumnsList, which is of type ArrayList. For this example I'm just
adding button to the list instead of my custom colum control.

This is my code in the designer.
Dim pdc As PropertyDescriptorCollection
Dim pd As PropertyDescriptor

CType(Component, queryBuilder).columnsList.Add(New Button)

pdc = TypeDescriptor.GetProperties(GetType(queryBuilder))
pd = pdc.Find("columnsList", True)

Me.RaiseComponentChanged(pd, "", New Button)

When this executes the button is added as well as the </COLUMNSLIST>
ending tag, but I do not get a start tag.

Thanks,
Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top