T
The Real Andy
Sorry if this question sounds stupid, its early days for me when it
comes to c# and com interop.
I have a method imported from Win Media PLayer SDK,
IWMPPluginUI
isplayPropertyPage, like so:
void DisplayPropertyPage(IntPtr hwndParent)
I need to pass hwndParent to a dialog, but I cant for the life of me
figure out how to cast it to a windows.forms.form handle.
I am trying to acheive something like this:
void DisplayPropertyPage(IntPtr hwndParent)
{
m_properties = new UIPropertiesDialog();
m_properties.Parent = hwndParent // CAST HERE
m_properties.ShowDialog();
}
Am I heading down the wrong path?
Andy
comes to c# and com interop.
I have a method imported from Win Media PLayer SDK,
IWMPPluginUI

void DisplayPropertyPage(IntPtr hwndParent)
I need to pass hwndParent to a dialog, but I cant for the life of me
figure out how to cast it to a windows.forms.form handle.
I am trying to acheive something like this:
void DisplayPropertyPage(IntPtr hwndParent)
{
m_properties = new UIPropertiesDialog();
m_properties.Parent = hwndParent // CAST HERE
m_properties.ShowDialog();
}
Am I heading down the wrong path?
Andy