How to: Specify a Base Address for a DLL
In Class Library and Control Library projects, you can set the DLL base-address property by using the DLL base address box. This box is in the Advanced Compiler Settings dialog box (Visual Basic) or in the Advanced Build Settings dialog box (C#).
To specify a base address for a DLL (Visual Basic)
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Compile tab.
Click the Advanced Compile Options button to open the Advanced Compiler Settings dialog box.
The default DLL base address is displayed in the DLL base address box. Enter the hexadecimal number to use as a base address, and then click OK. You can change this value only in Class Library and Control Library projects.
To specify a base address for a DLL (C#)
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Build tab.
Click the Advanced button to open the Advanced Build Settings dialog box.
The default DLL base address is displayed in the DLL Base Address box. Enter the hexadecimal number to use as a base address, and then click OK. You can change this value only in Class Library and Control Library projects.
See Also
Reference
Advanced Compiler Settings Dialog Box (Visual Basic)
Advanced Build Settings Dialog Box (C#)