| | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | Can the BrowseDialog be subclassed and reqused in multipul forms? |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 2 days ago @ 5:02:56 PM Posts: 2,682, Visits: 1,882 |
| | 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.
www.bungie.net |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | 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 |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 2 days ago @ 5:02:56 PM Posts: 2,682, Visits: 1,882 |
| A class is a class is a class... you could have used a windows form and changed it as well... doesn't matter . As long as it has the InitializeComponent method and it gets called in the constructor, you're good to go.
www.bungie.net |
| |
|
|