OnFileOpen kEventHandled not working

OnFileOpen kEventHandled not working

Anonymous
Not applicable
580 Views
2 Replies
Message 1 of 3

OnFileOpen kEventHandled not working

Anonymous
Not applicable

I did a search and found the previous thread on C# with the same issue.  This is in VB.net.  I have tried changing copy local to false on the inventor interop, and I have tried changing the project back to Net Framework 3.5 but neither has fixed the problem. 

 

When I step through the code it is firing the event and I am setting the handling code to handled, but I still always get the dialog. 

 

Anyone have any other ideas?

0 Likes
Accepted solutions (1)
581 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution
Hi,

When you set the event as handled, do you also handle "getting the filename. and also set the FileName argument".
Message 3 of 3

Anonymous
Not applicable

Thank you, that appears to have been the problem. I am not really sure I understand why the filename needs to be provided when we are setting it to handled.  OnFileNewDialog doesn't require any other arguments. 

0 Likes