I have created a macro using VBA which is working fine and after that i have written the same logic in VB.net and that DLL is giving lot of errors. Is there any way that i can use the vba code as it is in VB.net? Thank you.
"As it is"? No. There are many differences between VBA & VB.NET. THey ARE similar, and you may be able to get your code to work with minimal effort. But you may get more help if you post the code you are trying to get to work, as well as posting what the errors are you are getting.
To start with, get the thisdrawing equivalent using .net
Private Shared ReadOnly Property ThisDrg() As AcadDocument
Most of the VBA codes can be accessed though ThisDrg property