StrataFrame Forum

Subclassing the BrowseDialog

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

By Scott - 8/9/2006

Can the BrowseDialog be subclassed and reqused in multipul forms?
By StrataFrame Team - 8/9/2006

Yes, you can subclass it and set the properties within the compnent designer for that subclass.  Then you can drop it on a form.

It wasn't always that way (there were errors with the InitializeComponent() calls getting doubled up and you would have every search field twice, etc.), but it works now, so you should be good to go.

By Scott - 8/9/2006

I picked new Strataframe control and change it to inherit from the BrowseDialog, is that correct or should I just use new class?

It is working great just wanted to know the "correct" way of doing it.

Thanks

Scott

By StrataFrame Team - 8/9/2006

A class is a class is a class... you could have used a windows form and changed it as well... doesn't matter Smile.  As long as it has the InitializeComponent method and it gets called in the constructor, you're good to go.