StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Subclassing the BrowseDialogExpand / Collapse
Author
Message
Posted 08/09/2006 4:44:53 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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?
Post #2142
Posted 08/09/2006 4:57:54 PM


StrataFrame Developer

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
Post #2143
Posted 08/09/2006 6:32:19 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #2144
Posted 08/09/2006 7:14:04 PM


StrataFrame Developer

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
Post #2146
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:58pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.