I am creating a plugin for my Autodesk software and have setup the winforms to do everything i want them to do.
I have also registered the plugin with the software so it can be enabled, however my winforms are not loaded when the plugin is enabled
I currently have this code in an attempt to raise the form
Private Sub
RaiseWpfForm()
' Create the new window
Dim
wpf_form As New WPFForm
wpf_form.Token = m_token
wpf_form.PluginServices = m_plugin_services
' Attempt to parent the window
Dim
wih As New WindowInteropHelper(wpf_form)
wih.Owner =
New IntPtr(m_parent_window)
' Show the new window
wpf_form.Show()
End Sub
Am I missing something out here?
I have also registered the plugin with the software so it can be enabled, however my winforms are not loaded when the plugin is enabled
I currently have this code in an attempt to raise the form
Private Sub
RaiseWpfForm()
' Create the new window
Dim
wpf_form As New WPFForm
wpf_form.Token = m_token
wpf_form.PluginServices = m_plugin_services
' Attempt to parent the window
Dim
wih As New WindowInteropHelper(wpf_form)
wih.Owner =
New IntPtr(m_parent_window)
' Show the new window
wpf_form.Show()
End Sub
Am I missing something out here?
Last edited: