Valhalla Legends Forums Archive | Visual Basic Programming | Visual basic lessons?

AuthorMessageTime
Charlie
Well, I searched through the forums, and found nothing. So I supose that it's time to just make a topic about it. I have little knowlage of Visual basic, but I would like to learn. I seen in a couple of topics Warrior, MyndFyre, and some other people saying they would give lessons. Hmm, I was wondering if anyone could give me lessongs, It would be much apreciated. Anyone that can help, My yahoo is Wicketbishes and my email is the same. So..if you can help send me a IM or post here.

--Charlie
October 30, 2005, 10:41 PM
Yegg
I suggest the good "old fashion" way of learning, read a book. Check out the #eBooks channel on irc.tehnetwork.org. You can download from over 23,000 different eBooks. Yes, it contains many books pertaining to Visual Basic. So get yourself a good IRC client (I suggest mIRC 6.16) and log onto the server to get an eBook.
October 31, 2005, 12:44 AM
Charlie
Well, I was reading the information suggested in the forums guidelines, so yeah. Thanks! I'll have to check it out and see what I can do with it o_o
October 31, 2005, 12:56 AM
Twix
I know alot of people are against looking at coding to learn but for me its easier to learn if I know what is going on and it might help you here is a link to a place with some good source codes. www.pscode.com

Also ebooks are a great way to learn I personaly didnt download a ebook I went to the store and got a book for $40 but ebooks are great and cheap way to learn.
October 31, 2005, 1:41 AM
Charlie
Thanks man, Yeah. I just learn better person to person that reading from books n' shit. So yeah. I'll check them source codes out and see what I can get from em. Thanks alot dude.
October 31, 2005, 2:06 AM
Explicit[nK]
Sorry to break it to you, but source code alone isn't going to help. The key is to read, and become very intimate with the text.
October 31, 2005, 2:15 AM
Twix
I learn full asm and most of VB off just source code alone and I am afraid of how intimate you are with your text.
October 31, 2005, 2:46 AM
Yegg
I "learned" VB6 off source codes alone, let me tell you something about doing that, you don't know near as much about the language or what is going on, or better methods of coding by doing so unless you read actual full-fledged tutorials. All other languages I know have been learned by reading eBooks or site tutorials, as a matter of fact, right now I am reading a 580 page eBook tutorial so that I can learn C#. This eBook tells me everything, everything. Much more than I could ever learn from other people source codes.
October 31, 2005, 3:01 AM
Quarantine
I don't get how that is possible, learning from code.

Perhaps learning from code and looking up what it means peice by peice as it is encountered?

Good things:
Don't waste time through parts in books you don't need
Generally a faster pace

Bad things:
You may miss important parts of the language and/or become dependant on the source.

aha @ Details knowing "full asm and most of vb". Who knows assembly more than VB? VB should come second nature to every programmer. :/
October 31, 2005, 3:27 AM
Twix
Notice how I said I learn most of it from source no where i didnt say i didnt know the full thing you really need to read the full thing befor you post and look like an ass. and its possible to learn just as good from source then look back at book, the book just shows you sources so what is the difference.
October 31, 2005, 3:56 AM
Quarantine
[quote author=DeTaiLs link=topic=13115.msg132356#msg132356 date=1130730988]
Notice how I said I learn most of it from source no where i didnt say i didnt know the full thing you really need to read the full thing befor you post and look like an ass.
[/quote]
I acknowledged that and that's what I based my comment on, you learn to read.

[quote author=DeTaiLs link=topic=13115.msg132356#msg132356 date=1130730988]
and its possible to learn just as good from source then look back at book, the book just shows you sources so what is the difference.
[/quote]

It offers documentation and for reasons I offered above. Again, learn to read. Ass.
October 31, 2005, 3:58 AM
Explicit[nK]
I'm going to have to side with Warrior on this one, DeTaiLs. You can't fully understand a piece of code if you don't refer to a text for it. Functions for example, are in every source, but would you actually be able to determine what purpose they serve without referring to some documentation? Unless it's flat-out obvious, I'd think not.
October 31, 2005, 5:24 AM
Talora
I suggest http://www.google.com/ or http://www.google.co.uk/
October 31, 2005, 12:52 PM
Adron
[quote author=Explicit[nK] link=topic=13115.msg132367#msg132367 date=1130736270]
I'm going to have to side with Warrior on this one, DeTaiLs. You can't fully understand a piece of code if you don't refer to a text for it. Functions for example, are in every source, but would you actually be able to determine what purpose they serve without referring to some documentation? Unless it's flat-out obvious, I'd think not.
[/quote]

Actually, you often can determine what purpose they serve. You may need some practise, but it is doable. That is the basis of reverse-engineering software.
October 31, 2005, 5:30 PM
Yegg
A function can also be overloaded. How would you know what other purposes the function may serve if you've only seen one because that's all you saw in someone else's code?
October 31, 2005, 7:52 PM
Topaz
Experimentation and practice. Having smart friends to ask questions doesn't hurt either :)
October 31, 2005, 9:03 PM
Charlie
Well... Sense everyone is going WEWhoo over tihs, any of you teach well? LOL. Guys are freaking out o_O;;
October 31, 2005, 9:19 PM
Quarantine
Too much of a headache if you ask me when thoroughly reading documentation on the language will help you in the long run.
October 31, 2005, 9:19 PM
Charlie
Well ,see the problem is I don't learn from stareing at a book, I learn from someone telling me an example and I go try it out and do it. I duno, maybe it's just me; But I think I would learn better one on one.
October 31, 2005, 9:21 PM
Yegg
[quote author=Topaz link=topic=13115.msg132402#msg132402 date=1130792629]
Experimentation and practice. Having smart friends to ask questions doesn't hurt either :)
[/quote]
How can "experimentation" possibly help?? If you don't know what else the function can do, what can you "experiment" with? Also, why would you want to be bothering your "smart friends" about something when you could simply have actually learned the language (since this is what we're discussing) or learned about the function (not what we're talking about in this case however) from a documentation?
October 31, 2005, 10:10 PM
Charlie
I don't know, Lol. All of the information I have read so far is just words on a Page I can't understand it.  :'( :'(
October 31, 2005, 10:53 PM
Explicit[nK]
When most beginners are just starting out (at least, those related to Battle.net), they have a tendency to speed-read through the content. Take your time on each section, and if you don't understand a word, then look it up. Practice is key!
October 31, 2005, 11:07 PM
Charlie
I know I'm comeing from Battle.net, but I'm serious I don't learn from reading, Okay for example. I read the words Tcp/ip. First thing that comes to mind is Okay that's networking. But then It' goes into all this mumbo jumbo on how it works, and I just want to know how I incorporate that into codeing. See<- I don't know if thats what I'm doing wrong? Or do I need to read it and understand it all before I start?

--Charlie  ???
October 31, 2005, 11:12 PM
Explicit[nK]
[quote author=Explicit[nK] link=topic=13115.msg132416#msg132416 date=1130800059]
Take your time on each section, and if you don't understand a word, then look it up.
[/quote]

Try actually reading the post.  Anyway, it seems to me that this reading problem lies even outside of tutorials, and the only thing I can recommend is for you to stop being lazy and just read. Not the lazy kind of read, but the "I have to understand this" kind.
October 31, 2005, 11:17 PM
Yegg
I understand where Charlie is coming from though. And yes, there are some things that you won't understand... right away that is. Some things have to be re-read, possibly even multiple times to even have a general idea of its purpose. You may have to even try it out to help your understandance of it.
November 1, 2005, 2:05 AM
Explicit[nK]
[quote author=Adron link=topic=13115.msg132392#msg132392 date=1130779838]
[quote author=Explicit[nK] link=topic=13115.msg132367#msg132367 date=1130736270]
I'm going to have to side with Warrior on this one, DeTaiLs. You can't fully understand a piece of code if you don't refer to a text for it. Functions for example, are in every source, but would you actually be able to determine what purpose they serve without referring to some documentation? Unless it's flat-out obvious, I'd think not.
[/quote]

Actually, you often can determine what purpose they serve. You may need some practise, but it is doable. That is the basis of reverse-engineering software.
[/quote]

This was aimed at the perspective of the inexperienced.
November 1, 2005, 2:29 AM
Topaz
There are many things that books don't teach, and thats where experimenting with objects and functions come into play.
November 1, 2005, 3:13 AM
Yegg
[quote author=Topaz link=topic=13115.msg132449#msg132449 date=1130814834]
There are many things that books don't teach, and thats where experimenting with objects and functions come into play.
[/quote]
A book doesn't have to teach you "everything". And no one knows "everything". But by reading a book you can learn a lot more than if you relied on other code or "experimenting".
November 1, 2005, 11:06 PM
Myndfyr
Experimenting is a great supplement to online tutorials/lessons and books.

As I've said in the way I learned JavaScript, my first language, it was a series of not only trial and error, but also seeing what I had to work with and playing with it.
November 2, 2005, 12:02 AM
Yegg
[quote author=MyndFyre link=topic=13115.msg132533#msg132533 date=1130889761]
Experimenting is a great supplement to online tutorials/lessons and books.

As I've said in the way I learned JavaScript, my first language, it was a series of not only trial and error, but also seeing what I had to work with and playing with it.
[/quote]
But the "trial and error" and "experimenting" that we're discussing is done without ANY aid from a documentation of some sort. The only experience you have is from other people's source codes.
November 2, 2005, 1:07 AM
Charlie
Yeah, I was reading a little bit yesterday, I was suposdedly not alloud to be on the computer but hey, what the hell do parents know?!

I was looking at some source codes reading through them and examineing each line, still havn't tried anything though, I'm sitll in my learning process. Lol. 8)
November 2, 2005, 7:06 AM
Explicit[nK]
Parents know a great amount, even if it may not seem like it.
November 2, 2005, 7:45 AM
JoeTheOdd
First, do hello world.
[code]Private Sub Form_Load()
    Call MsgBox("Hello world!") 'Use call. If != call, = ugly. =)
End Sub[/code]
Then learn some more stuff.
[code]Private Sub Form_Load()
    Dim I as Integer: For I = 1 to 5
        Call MsgBox(I & ": Hello world!")
    Next i
End Sub[/code]

Congratulations, you've now used messageboxes, form procedures, variables (and their declarations), string concatination, and a FOR loop.

EDIT -
Once you've picked up the very basics, you'll find that VB is basically stripped down English. Assignment statments are basically a sentence.
English: Let A be 10.
VB: Let A = 10 (Let is not required)
November 2, 2005, 1:01 PM
Charlie
Hey that was preety cool. :D
Like how do you insert a picture of some sort into the back ground and change the color of the text? ;D
November 2, 2005, 1:15 PM
Myndfyr
You use the form designer.
November 2, 2005, 2:52 PM
Yegg
[quote author=Charlie link=topic=13115.msg132608#msg132608 date=1130937321]
Hey that was preety cool. :D
Like how do you insert a picture of some sort into the back ground and change the color of the text? ;D
[/quote]
PictureBox, ImageControl? Havn't used Visual Basic 6 in a long time.
November 2, 2005, 8:06 PM
Charlie
This is my first experiments with it, I'm trying to understand the language better. The more I mess with it the more confusing it gets, I'm sure if I study it more it will become more clear though.
November 2, 2005, 8:55 PM
Charlie
I am studying, I bounce around from posting and studying. Studying gets so borring so quickly :D
November 2, 2005, 9:00 PM
Charlie
Never said it wasn't life.  :o Anyways I got a question.
Right now I'm reading about networking, and I came to the area about Supernets.
[quote]
A supernet is a collection of smaller networks. Supernetting is a technique of using the netmask to aggregate a collection of smaller networks into a supernet. This technique is particularly useful for class C networks. A Class C network can only have 254 hosts. This can be too restrictive for some companies. For these companies, a netmask that only contains a portion of the network part can be applied to the hosts in these class C networks to form a supernet.

This supernet netmask should be applied to those interfaces that connect to the supernet using the ifconfig command. For example, a host can configure its interface to connect to a class C supernet, 192.6, by configuring an IP address of 192.6.1.1 and a netmask of 255.255.0.0 to its interface.
[/quote]
Anyways, how does the supernet collect the smaller networks...I'm so confused by this...Can someone make it more clear?

-Charlie
November 2, 2005, 9:07 PM
Explicit[nK]
Static routing?
November 2, 2005, 9:17 PM
Yegg
Start a new thread on that topic. This thread has gone for too long a time.
November 2, 2005, 10:27 PM
JoeTheOdd
[quote author=MyndFyre link=topic=13115.msg132614#msg132614 date=1130943161]
You use the form designer.
[/quote]

Form1.Picture = LoadPicture("C:\Documents And Settings\Owner\Owner's Pictures\pic1.jpg")

Untested. By the way, change that to an actual path.

Good time to learn App.Path. Probably want to put your image in a \data folder.

Dim ImgPath As String: ImgPath = App.Path & "\Data\image1.jpg"
App.Path returns the path the program was run from.
Example: C:\Program Files\NewProgram\Program1.exe has an App.Path of "C:\Program Files\NewProgram" (no trailing slash, make sure you include this.)

EDIT -
Feel free to contact me for a little one-on-one. My information is to the left (unless your skin sucks)
November 3, 2005, 2:45 AM
laurion
someone needs to do a 'lesson' thing for C++  :-*
November 3, 2005, 3:18 AM
Mangix
books are a nice source :P
November 3, 2005, 5:21 AM
laurion
i hate reading from a book about programming. i bought a book on c++ for dummies, and i havent even touched it in like 6 months  ;D
November 3, 2005, 11:53 AM
Quarantine
C++ for dummies wasn't that bad of a read iirc.
November 3, 2005, 12:05 PM
Yegg
"C++ Without Fear" is also a good C++ beginners book. Your local library may have a copy as mine did.
November 3, 2005, 3:02 PM
hismajesty
I'll give you lessons, for a price... :)
November 8, 2005, 3:11 AM
Explicit[nK]
Do you accept nude photos in exchange for lessons? ;)
November 8, 2005, 3:43 AM
hismajesty
Depends on who they're of. :P
November 8, 2005, 4:19 AM
Explicit[nK]
[quote author=hismajesty[yL] link=topic=13115.msg133147#msg133147 date=1131423559]
Depends on who they're of. :P
[/quote]

Yours truly! :)
November 8, 2005, 7:00 AM
JoeTheOdd
[quote author=Explicit[nK] link=topic=13115.msg133157#msg133157 date=1131433236]
[quote author=hismajesty[yL] link=topic=13115.msg133147#msg133147 date=1131423559]
Depends on who they're of. :P
[/quote]

Yours truly! :)
[/quote]

I saw that one. My penis didn't rise for weeks.
November 10, 2005, 3:21 AM
Explicit[nK]
[quote author=Joe link=topic=13115.msg133377#msg133377 date=1131592864]
[quote author=Explicit[nK] link=topic=13115.msg133157#msg133157 date=1131433236]
[quote author=hismajesty[yL] link=topic=13115.msg133147#msg133147 date=1131423559]
Depends on who they're of. :P
[/quote]

Yours truly! :)
[/quote]

I saw that one. My penis didn't rise for weeks.
[/quote]

I thought you were born that way...
November 10, 2005, 3:52 AM
JoeTheOdd
[quote author=Explicit[nK] link=topic=13115.msg133380#msg133380 date=1131594764]
[quote author=Joe link=topic=13115.msg133377#msg133377 date=1131592864]
[quote author=Explicit[nK] link=topic=13115.msg133157#msg133157 date=1131433236]
[quote author=hismajesty[yL] link=topic=13115.msg133147#msg133147 date=1131423559]
Depends on who they're of. :P
[/quote]

Yours truly! :)
[/quote]

I saw that one. My penis didn't rise for weeks.
[/quote]

I thought you were born that way...
[/quote]

Yeah, well.. man, that was a good one.
November 10, 2005, 5:01 AM
Charlie
My topic has lived on! Plus, I'm reading a book...:D So yeah.
November 11, 2005, 2:56 AM
Yegg
Heh, you're topic has only lived on because people insist on turning random threads into a lounge.
November 11, 2005, 4:49 AM
JoeTheOdd
[quote author=Yegg link=topic=13115.msg133490#msg133490 date=1131684590]
Heh, you're topic has only lived on because people insist on turning random threads into a lounge.
[/quote]

Hah, something wrong with that? =)
November 11, 2005, 6:09 AM
Topaz
your* You're always confusing the two.
November 11, 2005, 7:49 AM
hismajesty
[quote author=Charlie link=topic=13115.msg133473#msg133473 date=1131677766]
My topic has lived on! Plus, I'm reading a book...:D So yeah.
[/quote]

What? 1 on 1 help can't compare to a book! It's like looking at a Playboy cover versus having sex with a Playboy covergirl.
November 11, 2005, 5:31 PM
JoeTheOdd
You enjoy one-on-one much more?

EDIT -
Plus one-on-one has a chance of getting you AIDS and tossing your helper in jail (if your a minor)?
November 11, 2005, 8:59 PM
Yegg
You guys, just let the topic die. I'd like to not have to continue to post but I know that if I don't, this topic will go on for who knows how long.
November 11, 2005, 10:43 PM
hismajesty
It's only like a 13 day old topic...
November 12, 2005, 12:37 AM
FrOzeN
[quote author=Charlie link=topic=13115.msg132608#msg132608 date=1130937321]
Hey that was preety cool. :D
Like how do you insert a picture of some sort into the back ground and change the color of the text? ;D
[/quote]
Sub-Class the Message Box.

jk.

(Well actually would be better if you wanted it for a MessageBox, however extremely difficult considering your learning and too much effort for such a basic cause.)
November 12, 2005, 2:06 AM
Charlie
Hey guys I'm back!!!!! hismagesty <3 I'll pay you nude pics of Joe. Roflmao.
November 28, 2005, 3:45 AM
JoeTheOdd
[quote author=Charlie link=topic=13115.msg135528#msg135528 date=1133149514]
Hey guys I'm back!!!!! hismagesty <3 I'll pay you nude pics of Joe. Roflmao.
[/quote]

Ask TehUser, he has some laying around somewhere.
November 28, 2005, 12:56 PM
Explicit[nK]
[quote author=Joe link=topic=13115.msg135552#msg135552 date=1133182569]
[quote author=Charlie link=topic=13115.msg135528#msg135528 date=1133149514]
Hey guys I'm back!!!!! hismagesty <3 I'll pay you nude pics of Joe. Roflmao.
[/quote]

Ask TehUser, he has some laying around somewhere.
[/quote]

Disgusting.
November 28, 2005, 8:55 PM

Search