StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Using property as a string to resolve at runtime to an object...
Using property as a string to resolve at runtime to an object reference
Post Reply
Like
0
Using property as a string to resolve at runtime to an object...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Charles R Hankey
Charles R Hankey
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 524,
Visits: 30K
I have a piece of code in a form :
Private Sub lvSelections_ListPopulating(ByVal e As MicroFour.StrataFrame.UI.ListPopulatingEventArgs) _
Handles lvSelections.ListPopulating
e.Parameters(0).Value = Me.Vr_PolicyHolderListBO1
e.Parameters(1).Value = _
MicroFour.StrataFrame.Business.BusinessCloneDataType.ClearAndFillFromCompleteTable
End Sub
Private Sub btnViewReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles btnViewReport.Click
UI.FormManager.OpenReport(GetType(InsurtecPH.Reporting.Forms.PolicyHolderListReportForm), _
New Object() {Me.Vr_PolicyHolderListBO1}, False)
End Sub
I want to have properties that can be set at design time that at run-time will result in the BO references being set to the object referred to by the property and ReportForm likewise.
Since the form is in a different assembly and for simplicity sake it seems two string properties would do the trick but I am open to suggestions. Obviously I want to make this generic so that in a subclass I can set the properties and have the same behavior except for the the BO and form used. Struggling with syntax.
Suggestions appreciated. TIA
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
Using property as a string to resolve at runtime to an object...
Charles R Hankey
-
15 Years Ago
There is an method in the framework that takes the [b]full[/b] name of...
Greg McGuffey
-
15 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