Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Sub Main

Sub Main

Scheduled Pinned Locked Moved Visual Basic
csharphelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bensoncd
    wrote on last edited by
    #1

    Dear VB.NET Forum, I have just started my first programming exercise in VB.NET. When I try to run the project an error code come up indicating that Sub Main is missing in my project. Kindly explain to me what this 'Sub Main' is for and how should I include it in my project. Ben:confused:

    N 1 Reply Last reply
    0
    • B bensoncd

      Dear VB.NET Forum, I have just started my first programming exercise in VB.NET. When I try to run the project an error code come up indicating that Sub Main is missing in my project. Kindly explain to me what this 'Sub Main' is for and how should I include it in my project. Ben:confused:

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      Ok, first of all, what project are you running? Is it a Window application? Or is it a console Application? Where is your entry point into the app? Nick Seng (the programmer formerly known as Notorious SMC)


      God, I pity me! - Phoncible P. Bone

      B 1 Reply Last reply
      0
      • N Nick Seng

        Ok, first of all, what project are you running? Is it a Window application? Or is it a console Application? Where is your entry point into the app? Nick Seng (the programmer formerly known as Notorious SMC)


        God, I pity me! - Phoncible P. Bone

        B Offline
        B Offline
        bensoncd
        wrote on last edited by
        #3

        Hello Nick I am running a Windows Application Project. I have not programmed in VB before, and what I have is the latest VB.NET software loaded on my machine. I am trying to teach myself VB.NET, but too bad the starting point seems to be quite difficult. Can I teach myself the basics of VB using VB.NET?

        N 1 Reply Last reply
        0
        • B bensoncd

          Hello Nick I am running a Windows Application Project. I have not programmed in VB before, and what I have is the latest VB.NET software loaded on my machine. I am trying to teach myself VB.NET, but too bad the starting point seems to be quite difficult. Can I teach myself the basics of VB using VB.NET?

          N Offline
          N Offline
          Nick Seng
          wrote on last edited by
          #4

          Don't worry about it. VB.Net is quite easy once you get the hang of it :) OK, regarding your question. In VB.Net, there are 2 possible points of entry in an application, A windows form, or a Sub Main. To set either one, go to your Solution Explorer, Right-click on your Project and choose properties. Look for the "Startup Object" properties and it's corresponding Combobox, which will list any "Sub Main" and windows form in your application. Choose any one to have your program "start" from that point. Nick Seng (the programmer formerly known as Notorious SMC)


          God, I pity me! - Phoncible P. Bone

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups