|
Imports Microsoft.InteropFormTools
' This ComVisible attribute is placed outside of the
' AssemblyInfo.vb file since the Project Properties
' Designer will change the attribute in that file when
' the "Register For COM Interop" option is checked.
' If the attribute is added to that AssemblyInfo.vb
' it will cause a compile error so simply delete it.
<Assembly: System.Runtime.InteropServices.ComVisible(False)>
' This property is included in the My namespace, so it will show up in IntelliSense after referencing My.
Namespace My
' The HideModuleNameAttribute hides the module name MyInteropToolbox so the syntax becomes My.InteropToolbox.
<Global.Microsoft.VisualBasic.HideModuleName()> _
Module MyInteropToolbox
Private _toolbox As New InteropToolbox
Public ReadOnly Property InteropToolbox() As InteropToolbox
Get
Return _toolbox
End Get
End Property
End Module
End Namespace
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
James is a program writer for a respectable software company. He is also a Microsoft MVP.