Who's a begginer, cause i am.
-
Sub Easy()
Dim i as Integer
i = 1
End SubHope that helps. I see dead pixels Yes, even I am blogging now!
-
Sub Easy()
Dim i as Integer
i = 1
End SubHope that helps. I see dead pixels Yes, even I am blogging now!
-
me.close thats it form1_load me.close James Kennelly
-
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!
-
Sub Easy()
Dim i as Integer
i = 1
End SubHope that helps. I see dead pixels Yes, even I am blogging now!
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
-
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
-
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!
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?"
-
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!!!!!!!!!!