Home » VB.NET » VB.NET Hide Module Name

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 post in VB.NET

About Dave Bush

Dave Bush is a Full Stack ASP.NET developer focusing on ASP.NET, C#, Node.js, JavaScript, HTML, CSS, BootStrap, and Angular.JS. Does your team need additional help in any of the above? Contact Dave today.

Leave a Reply

1 Comment on "VB.NET Hide Module Name"

Notify of
avatar
Sort by:   newest | oldest | most voted
trackback

[…] VB.NET Hide Module Name (Dave M. Bush) […]

wpDiscuz