StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Calling Other Forms
Calling Other Forms
Post Reply
Like
0
Calling Other Forms
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Mike Thomas
Mike Thomas
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 26,
Visits: 82
I saw this code snippet in the CRM Sample. Is the recommended method for calling other forms? can you explain the activator object?
Private
Sub
LaunchForm(
ByVal
FormType
As
System.Type)
'-- Establish Locals
Dim
loForm
As
Form
'-- Create the form
loForm =
CType
(Activator.CreateInstance(FormType), Form)
'-- Set the MDI parent
loForm.MdiParent =
Me
'-- Show the form
loForm.Show()
End
Sub
#
End
Region
#
Region
" Handled Events "
'''
<summary>
''' Launch the customers maintenance form
'''
</summary>
'''
<param name="sender"></param>
'''
<param name="e"></param>
'''
<remarks></remarks>
Private
Sub
cmdCustomers_Click(
ByVal
sender
As
System.Object,
ByVal
e
As
System.EventArgs)
Handles
cmdCustomers.Click
Me
.LaunchForm(
GetType
(CustomerMaintenance))
End
Sub
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
Calling Other Forms
Mike Thomas
-
17 Years Ago
Hi Mike, This thread may help:...
Peter Jones
-
17 Years Ago
This is a good approach and is really dependent upon what you are...
Trent L. Taylor
-
17 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