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. Who's a begginer, cause i am.

Who's a begginer, cause i am.

Scheduled Pinned Locked Moved Visual Basic
9 Posts 7 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.
  • S Offline
    S Offline
    SWillard
    wrote on last edited by
    #1

    Share some easy stuff. Swillard

    D M J 3 Replies Last reply
    0
    • S SWillard

      Share some easy stuff. Swillard

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Sub Easy()
      Dim i as Integer
      i = 1
      End Sub

      Hope that helps. I see dead pixels Yes, even I am blogging now!

      G M 2 Replies Last reply
      0
      • D Daniel Turini

        Sub Easy()
        Dim i as Integer
        i = 1
        End Sub

        Hope that helps. I see dead pixels Yes, even I am blogging now!

        G Offline
        G Offline
        GizzoF
        wrote on last edited by
        #3

        Could you post a difficult one?

        V D 2 Replies Last reply
        0
        • G GizzoF

          Could you post a difficult one?

          V Offline
          V Offline
          vertig0730
          wrote on last edited by
          #4

          me.close thats it form1_load me.close James Kennelly

          1 Reply Last reply
          0
          • G GizzoF

            Could you post a difficult one?

            D Offline
            D Offline
            Daniel Turini
            wrote on last edited by
            #5

            GizzoF wrote: Could you post a difficult one? Explain me the difference between "On Error GoTo 0" and "On Error GoTo -1", with your words, without quoting MSDN. I see dead pixels Yes, even I am blogging now!

            R 1 Reply Last reply
            0
            • D Daniel Turini

              Sub Easy()
              Dim i as Integer
              i = 1
              End Sub

              Hope that helps. I see dead pixels Yes, even I am blogging now!

              M Offline
              M Offline
              Mitch F
              wrote on last edited by
              #6

              Actually, that is quite inefficient... You could optimize the code by making it:

              Sub Easy()
              Dim i as Integer = 1
              End Sub

              :-D ;) Programmer2k4 My sig: "And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright I now use my CodeProject Blog! Most recent blog post: April 3

              1 Reply Last reply
              0
              • S SWillard

                Share some easy stuff. Swillard

                M Offline
                M Offline
                Mitch F
                wrote on last edited by
                #7

                If you want to learn VB .Net, I'd suggest getting a book. If you do want to spend a few more hours instead of paying money, try and teach yourself VB .Net. Some good starter points are: Event Handlers, MessageBox class, changing location/size of items programatically/at run time, and loading pictures from Embedded Resources. People don't usually give code to an entire application away for free, and also, you haven't really asked a question therefore I am really unable to answer directly to your needs from what you already know. Try a search on google for "VB .Net Beginner Tutorials" and such, and you will get helpful tutorials. And of course, check the VB .Net articles section of this site! :bob: I hope this helps, Programmer2k4 My sig: "And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright I now use my CodeProject Blog! Most recent blog post: April 3

                1 Reply Last reply
                0
                • D Daniel Turini

                  GizzoF wrote: Could you post a difficult one? Explain me the difference between "On Error GoTo 0" and "On Error GoTo -1", with your words, without quoting MSDN. I see dead pixels Yes, even I am blogging now!

                  R Offline
                  R Offline
                  rwestgraham
                  wrote on last edited by
                  #8

                  Daniel Turini wrote: Explain me the difference between "On Error GoTo 0" and "On Error GoTo -1", with your words, without quoting MSDN. In VB6 : On Error GoTo 0 disables any error handler in the function the GoTo 0 statement appears in. Since the error will not be trapped in the function it will be propagated up the call stack. On Error GoTo -1 is not a valid statement because -1 is not a valid line number and is also not a valid name for an error handler section. The VB6 compiler will not complain about an On Error GoTo -1 statement. It simply will not do anything. In VB.NET it is the same as VB6: On Error GoTo 0 disables any error handler in the function the GoTo 0 statement appears in. Since the error will not be trapped in the function it will be propagated up the call stack. On Error GoTo -1: The MSDN says this "sets the enabled exception to Nothing" but if you test in code, like in VB6 On Error GoTo -1 does absolutely nothing. The better question would be: "What difference does On Eror GoTo -1 make in the first place because why are you using unstructured error handling in VB.NET?"

                  1 Reply Last reply
                  0
                  • S SWillard

                    Share some easy stuff. Swillard

                    J Offline
                    J Offline
                    jtart2
                    wrote on last edited by
                    #9

                    I'm a beginner too. I purchased a large book called "Mastering Visual Basic.Net" and a small one called "Visual Basic.Net in Easy Steps" . The small book cost $10 and gave me clear examples and showed me how to do basic things...enought to let me write my own first semi-complex program. The large book cost $50 and was full of definitions with a few abstract examples. The cheap, small book is so much better. If I were you, I'd get that one..."Visual Basit.Net in Easy Steps" Good luck. :confused: If you make yourself a sheep, the wolves will eat you!!!!!!!!!!

                    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