StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Editing State Changed question...
Editing State Changed question...
Post Reply
Like
0
Editing State Changed question...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
StarkMike
StarkMike
posted 19 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 436,
Visits: 944
I have created a DevExpress maintenance form. If I have controls on the form that are not bound to any data but I want them to disable when I enter an editing mode how would I do that? Because I see not way to modify or add to the event handlers for the buttons on the toolstrip.
After some looking here is how I answered my own question... just want to make sure this is the "best practices" solution.
Private Sub CustomersBO1_EditingStateChanged(ByVal e As MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) Handles CustomersBO1.EditingStateChanged
Select Case e.EditingState
Case MicroFour.StrataFrame.Business.BusinessEditingState.Adding, MicroFour.StrataFrame.Business.BusinessEditingState.Editing
Me.btnSearch.Enabled = False
Me.txtSearch.Enabled = False
Case MicroFour.StrataFrame.Business.BusinessEditingState.Idle
Me.btnSearch.Enabled = True
Me.txtSearch.Enabled = True
End Select
End Sub
P.S. any idea why my quote tag didnt work?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Editing State Changed question...
StarkMike
-
19 Years Ago
[quote]If I have controls on the form that are not bound to any data...
Trent L. Taylor
-
19 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search