VB.NET Hide Module Name
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
Other post in Advanced VB.NET
- VB.NET - Char from String with Option Strict - April 8th, 2009
- .Net String Pool – Not Just For The Compiler - April 22nd, 2009
- Manually Adding Event Handlers in VB.NET - July 15th, 2009
- VB.NET Processing Before WinForm Display - August 6th, 2009
- VB.NET Hide Module Name - August 28th, 2013
- VB.NET Nullable Types - January 15th, 2014
Like this Article? Subscribe to get every article sent to your email.
- 28 August 2013 at 8:08am
- Dew Drop – August 28, 2013 (#1,613) | Alvin Ashcraft's Morning Dew
[…] VB.NET Hide Module Name (Dave M. Bush) ...