Subclassing BrowseDialog


Author
Message
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Thanks again for all your advice
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yup, that is by design.
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
OK Trent,

now I understand my errors:
the 3 properties BusinessObjectType, SearchFields, BrowseResultsLayout must be set from within the class itself, and not from the form in design mode.

all attempts to reset these properties in form design mode are without any result, only class-set properties are saved.

If it's "by design", let me use it as it is...

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Here is a sample that has a sub-classes browse dialog.  It was created just as my explanation above mentioned.  So if you are getting errors on this sample, then you do not have the most recent version loaded or still have old assemblies that are being referenced.
Attachments
SubClassBrowseDialog.zip (108 views, 131.00 KB)
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Michel,

Just to make sure, check out the version of the SF libraries, by clicking the StrataFrame menu ->Version, they all should be 1.6.5.3

Edhy Rijo

Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
I've downloaded and installed the last version (from your link), and still have the same issue:

3 properties of the subclassed browsedialog don't stay as I set them - BusinessObjectType, SearchFields, and BrowseResultsLayout.

I set those properties as needed from within the properties sheet of the form, then I save my form, and when I open this form again, those 3 properties are reset with blank.

Of course, I notice the same missing properties in debugger when setting a breakpoint inth form.shown event

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Sounds like you need to get the latest version of SF.  This is already done.  You can get it here: http://forum.strataframe.net/FindPost18055.aspx .  In fact, I think that this was done back in 1.6.5, but I know for a fact that it is in 1.6.6 since this is what we are running at present.
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Trent,

I have created a new subclased BrowseDialog, exactly as you mentionned (new component in my controls library project, and simply add the inherintance in the class definition, without modifying any property)

I compile that project, then I go in my app project, add this new browsedialog in the toolbox, add it to a form, configure this browsedialog, setting it as browsedialog in the toolstrip

and crash again when clicking on the browse button!

same error: what does " MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.SetGroupBoxDimensions()" references to, in the error message?

I also notice that the properties set on that browsedialog (i.e BusinessObjectType, SearchFields, BrowseResultsLayout) are reset as empty after launching that form (even without showing the browsedialog itself).

Thank you for all your advices.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
This is actually standard .NET in regards to the component.  If you will do as I mentioned in the previous post, I promise that it will work.  I have done this dozens of times in the last two weeks alone!  You are welcome to post a sample reproducing your problem.  That might make it easier to determine your issue versus going back and forth over the forum.  Thanks.
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
No, not so fine... me.component is automaticaly added when drag and drop from the toolbox, but still the same error raised again now.

definitely I misunderstood something...

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search