
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've got a problem with the event sink of the FileOpenDialog in C#. I want to disable the default Inventor file dialog. If I leave my delegate function with the HandlingCodeEnum.kEventCanceled setting, the default Inventor dialog box appears anyway.
The event sink written in VBA woks fine!
What I've done wrong?
Here is my code:
this.fileUIEvents = app.FileUIEvents;
// Open
this.fileUIEvents.OnFileOpenDialog += new FileUIEventsSink_OnFileOpenDialogEventHandler(fileUIEvents_OnFileOpenDialog);
private void fileUIEvents_OnFileOpenDialog(ref string[] fileTypes, int parentHWND, out string fileName,
NameValueMap context, out HandlingCodeEnum handlingCode)
{
fileName = "C:\\MindaModels\\Stange200x30.ipt";
handlingCode = HandlingCodeEnum.kEventCanceled;
}
Can you help me?
Thanks.
Solved! Go to Solution.