C
Craig
Hi
I created a CommandBarPopup with a couple of menu items. The Click event
handler for one of the menu items is the following code:
private void OnClick(CommandBarButton Ctrl, ref bool CancelDefault) {
OpenFileDialog ofd = new OpenFileDialog();
if(ofd.ShowDialog() == DialogResult.OK) {
MessageBox.Show(ofd.FileName);
}
}
When the event is called, the OpenFileDialog does not appear. I've made my
class derived from IWin32Window implementing the property Handle (which
returns the handle of Outlook) and passed this value into ShowDialog, but
still nothing.
Can anyone please help me with this, I'm all out of ideas...
Craig
I created a CommandBarPopup with a couple of menu items. The Click event
handler for one of the menu items is the following code:
private void OnClick(CommandBarButton Ctrl, ref bool CancelDefault) {
OpenFileDialog ofd = new OpenFileDialog();
if(ofd.ShowDialog() == DialogResult.OK) {
MessageBox.Show(ofd.FileName);
}
}
When the event is called, the OpenFileDialog does not appear. I've made my
class derived from IWin32Window implementing the property Handle (which
returns the handle of Outlook) and passed this value into ShowDialog, but
still nothing.
Can anyone please help me with this, I'm all out of ideas...
Craig