VB.NET Hide Module Name

misc_vol3_064 Here’s a quick tip for those of you still using modules in your VB.NET applications.

If you create a module and don’t want to see the module name in your intellisense, you can hide it with an attribute.  This can be extremely useful when you have a lot of modules that would show up in your intellisense code and they don’t have names that conflict with each other.

<HideModuleName()> _
Module Module1
    Sub NewFunction()
        Return
    End Sub

End Module

You can still reference NewFunction() via Module1

Module1.NewFunction()

But Module1 will no longer show in intellisense.


Other Related Items:

OmniMount CMK 4-Inch Cable Management CoversOmniMount CMK 4-Inch Cable Management CoversKeep your computer wires in neat and in order. Looks good and saves space. Modular designPaint to match any wallCovers can be cut to any length. 4-Inch Cable Management Covers.
Kiva Hide-Away DuffelKiva Hide-Away DuffelFront pouch pocket is gusseted and has an added zipper flat mesh pocket.
CITIBLOCS Original Wooden Building Block Set - 300 PieceCITIBLOCS Original Wooden Building Block Set - 300 Piece300 Pieces for a amazing start to the Citiblocs adventure! Guaranteed fun for all ages, Citiblocs develop logical thinking & confidence. Build, inven... Read More >

Related Post

Comments are closed.

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor