Disable Close option on DocumentWindow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a requirement to add a custom start page when Autocad and plant 3D 2018 is opened. I get to know that there is no any API to alter existing start page so i added new page. i'm using below code to do that
Application.DocumentWindowCollection.AddDocumentWindow("CADSupportForum", New Uri(url))
It is now serving my purpose, but anyone can close it. I want that close X button should be disabled for this document so that no one close it just like existing default start tab in AutoCAD. See the attachment for better understating.
Above code return "DocumentWindow" and it has "CanClose" property but unfortunately it is ReadOnly , so i can not make it false.
I got a suggestion from AutoCAD customization group to use FILETABCLOSE command, but i don't know how to use it in dot .net code and read about it and i think it won't solve my problem.
Can you please suggest some way and share some sample code to achieve that.