Track Click on SF MaintenanceFormToolStrip


Author
Message
Michael Reese
Michael Reese
StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)StrataFrame VIP (1K reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
I would like to trap the New,Edit,Delete button click events on the menustrip.
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)StrataFrame Developer (27K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Ralph is going dow the right path here...the toolstrip is somewhat "dumb."  It is just calling an Add on the BO, so you can handle the BeforeAddNew, AfterAddNew, BeforeDelete, etc.

When you handle the Before events, you can prevent the action from happening.  For example:

Private Sub MyBo_BeforeAddNew(ByVal e As MicroFour.StrataFrame.Business.BeforeAddNewEventArgs) Handles Me.BeforeAddNew
    e.Cancel = True
End Sub

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