StrataFrame Forum

Browse Dialog - Can i do a template for use it in many forms?

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

By Luiz Lima - 6/25/2009

Hi.

I´m a novice StrataFrame Developer (and VB also..lol)

I´d like to know if is possible to create a template to do Customer´s BD to use it in a whole project (many forms), without configure it manually in design mode.

A solution that would be easy if i could configure it programmatically using properties.

I hope to hear some help from you.

PS: Sorry by my poor english

Tks

By Trent L. Taylor - 6/25/2009

Yes, it is actually very simple. The easiest way is to just do the following:



1. Create a new component class

2. Name it the name you want your browse dialog to be

3. Change the inheritance of the class from Component to MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog

4. Once this is done, you will just double-click the BrowseDialog class from the Solution Explorer to open the designer and from that point forward you will just set the properties like you would if it were on a form. After this, just drop it on a form and go.
By Luiz Lima - 6/25/2009

Trent,

Tks... i´ll try to do that....