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



Navigated Event - User ControlsExpand / Collapse
Author
Message
Posted 06/14/2007 9:43:21 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:08:21 AM
Posts: 314, Visits: 1,289
I have a user control which includes a business object, business binding source and a Grid Control.  The BO Navigated event only seems to fire the first time the business object is populated. Once populated it does not seem to fire as I navigate throught the grid. 

When I replicate this on a standard form it works fine.

Thanks,
Tim

Post #9576
Posted 06/14/2007 12:16:52 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:08:21 AM
Posts: 314, Visits: 1,289
Trent/Ben,

I emailed you a test project recreating the issue.

Tim

Post #9590
Posted 06/14/2007 1:15:38 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:25:17 AM
Posts: 4,901, Visits: 4,885
Yeah, we got it and will take a look at it.  Thanks.
Post #9595
Posted 06/15/2007 9:15:33 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
OK, I figured it out... since the BBS was dropped on a UserControl and not a form, the ParentForm property of the BBS is not being properly set; the aquiring of the CurrencyManager for the BBS is done within the Setter of the ParentForm property if ParentForm IsNot Nothing.  So, I changed the ParentForm property from a Form to an IContainerControl and it is now able to properly evaluate the BindingContext when the BBS is dropped on a user control.  Here are the base DLLs.  I would recommend backing up the DLLs that you currently have in your Common Files folder in case you run into an issue accesing the BOMapper because I cannot give you the AddIns and Extensibility DLLs that go along with these because they are torn up at the moment with some changes that are being implemented.

On the places where you have dropped a BBS on a user control, you'll need to go to the .designer.vb file for the user control and change the lines

Me.BBS.ParentForm = Nothing

to

Me.BBS.ParentForm = Me

for each BusinessBindingSource that you have dropped on a user control.


www.bungie.net

  Post Attachments 
StrataFrame.zip (7 views, 1.81 MB)
Post #9612
Posted 06/15/2007 10:16:32 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 10/31/2007 5:20:05 PM
Posts: 374, Visits: 1,197
Hi Ben;

Will this solution be applicable to the problem that I brought it up to you a few says ago (where the ToolStip navigation did not work with BBS), unless the toolstrip was placed on a Std form with BBS?

Thanks!

p.s. Although, I ended up creating my own Base Maintenance form, with several other controls on them, but I thought someone else might run into the same issue as I did!

..ßen
Post #9618
Posted 06/18/2007 9:03:52 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:08:21 AM
Posts: 314, Visits: 1,289
Hi Ben, I uninstalled the 4 dll's from the GAC, copied the new ones to folder c:\Program Files\Common Files\MicroFour\StrataFrame. I then dragged them to the GAC.

I went into my project and changed the bbs.ParentForm = Me, but I get a message  'Value of type myUserControl cannot be converted to System.Windows.Forms

Did I perform the correct steps?

Thanks,

Tim

Post #9642
Posted 06/19/2007 8:58:37 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
Yes, you performed the correct steps.  It might be that you didn't re-open Visual Studio... or I sent you the incorrect DLLs.  The ParentForm property should now be a MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl, not a System.Windows.Forms.Form.


www.bungie.net
Post #9651
Posted 06/20/2007 10:45:43 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:08:21 AM
Posts: 314, Visits: 1,289
Ben,

I repeated the steps once again and this time restarted VS and I still have the same problem. Can you please resend me the dll's.

Thanks

Tim

Post #9678
Posted 06/21/2007 9:31:22 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
Sure thing, here you go, and built in Release this time, dated this morning.


www.bungie.net

  Post Attachments 
StrataFrame.zip (5 views, 1.76 MB)
Post #9696