StrataFrame Forum

Adding New Search Field to BrowseDialog

http://forum.strataframe.net/Topic13384.aspx

By Bill Cunnien - 1/11/2008

I have a browsedialog on a maintenance window.  I added five field by which to search.  The form has been compiled, tested and successfully deployed.  Now, I want to add a new field to the list of searchable fields.  I click on the expansion button for the SearchFields property of the BrowseDialog and the "Search Fields" dialog window opens.  As soon as I click the 'Add' button the window closes.  I can remove items from the list, but I cannot add or edit them.  What can I do to fix this problem?

Thanks,
Bill

By Bill Cunnien - 1/11/2008

I tried closing/re-opening Visual Studio...that did not work.

I removed all of the fields.  Removed the sort field, too.  Saved the form.  Closed the form.  Opened it again.  Opened the Search Field dialog...

...and it works, now.

Strange. Alien

By Trent L. Taylor - 1/13/2008

Welcome to .NET...but I don't think that you had to go through this entire process.  When you clicked the Add button, the designer references the SearchFields collection on the BrowseDialog.  More than likely something was wrong with the InitializeComponent() that creates this collection.  At any rate, glad you are working.