Does anyone ehere knows how to disable keyboards keys (e.g. delete key, enter key, spacebar key) once autocad load.
Thanks and regards,
Solved! Go to Solution.
Solved! by scluna. See the answer in context.
I think I found the solutions to do this by implementing
Here is the code I got from reading an article from dev blog but I forgot the link.
Public Class CErase
Public Overrides Sub [Erase](dbObject As DBObject, erasing As Boolean)
Throw New Autodesk.AutoCAD.Runtime.Exception(ErrorStatus.Not
Shared objEraseOverRule As EraseOverrule = Nothing
Public Shared Sub PreventErase()
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Edit
If objEraseOverRule Is Nothing Then
objEraseOverRule = New EraseOverrule()
ObjectOverrule.Overruling = True
objEraseOverRule = Nothing
Access a broad range of knowledge to help get the most out of your products and services.