VB. NET Shared Sub Main()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • andre@online.nospam

    VB. NET Shared Sub Main()

    HI,

    I’m learning C# and already know VB .Net. I noticed that C# you have a
    Static Void Main () (entry point of the app).

    Well that got me thinking, I was told that VB.net removed “The Black Box”
    of software (hidden code). Where is my Shared sub Main ()? When I create a
    blank app and run it, it asked me where is Shared sub Main. So, can I assume
    that it’s hidden on a win32 app? And if so, why hide it?



    Thanks

  • Cor Ligthert

    #2
    Re: VB. NET Shared Sub Main()

    Hi Andre,

    Sub Main is an standard part of dotNet.

    When it is ommitted as with VBNet in the standard way than that one is taken
    in the Form you choose as startup in the properties of your application. It
    is not a win32 part.

    It is not hidden, you just do not have to use it, however when you want,
    feel free to add that class a lot of VBNet programmers are using that as I
    have seen.

    Cor
    [color=blue]
    > I'm learning C# and already know VB .Net. I noticed that C# you have a
    > Static Void Main () (entry point of the app).
    >
    > Well that got me thinking, I was told that VB.net removed "The Black Box"
    > of software (hidden code). Where is my Shared sub Main ()? When I create a
    > blank app and run it, it asked me where is Shared sub Main. So, can I
    > assume
    > that it's hidden on a win32 app? And if so, why hide it?
    >
    >
    >
    > Thanks
    >[/color]


    Comment

    Working...