Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Charlie on October 30, 2005, 04:41 PM

Title: Visual basic lessons?
Post by: Charlie on October 30, 2005, 04:41 PM
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
Title: Re: Visual basic lessons?
Post by: Yegg on October 30, 2005, 06:44 PM
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.
Title: Re: Visual basic lessons?
Post by: Charlie on October 30, 2005, 06:56 PM
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
Title: Re: Visual basic lessons?
Post by: DeTaiLs on October 30, 2005, 07:41 PM
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 (http://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.
Title: Re: Visual basic lessons?
Post by: Charlie on October 30, 2005, 08:06 PM
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.
Title: Re: Visual basic lessons?
Post by: Explicit on October 30, 2005, 08:15 PM
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.
Title: Re: Visual basic lessons?
Post by: DeTaiLs on October 30, 2005, 08:46 PM
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.
Title: Re: Visual basic lessons?
Post by: Yegg on October 30, 2005, 09:01 PM
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.
Title: Re: Visual basic lessons?
Post by: Warrior on October 30, 2005, 09:27 PM
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. :/
Title: Re: Visual basic lessons?
Post by: DeTaiLs on October 30, 2005, 09:56 PM
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.
Title: Re: Visual basic lessons?
Post by: Warrior on October 30, 2005, 09:58 PM
Quote from: DeTaiLs on October 30, 2005, 09:56 PM
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.
I acknowledged that and that's what I based my comment on, you learn to read.

Quote from: DeTaiLs on October 30, 2005, 09:56 PM
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.

It offers documentation and for reasons I offered above. Again, learn to read. Ass.
Title: Re: Visual basic lessons?
Post by: Explicit on October 30, 2005, 11:24 PM
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.
Title: Re: Visual basic lessons?
Post by: Talora on October 31, 2005, 06:52 AM
I suggest http://www.google.com/ or http://www.google.co.uk/
Title: Re: Visual basic lessons?
Post by: Adron on October 31, 2005, 11:30 AM
Quote from: Explicit[nK] on October 30, 2005, 11:24 PM
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.

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.
Title: Re: Visual basic lessons?
Post by: Yegg on October 31, 2005, 01:52 PM
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?
Title: Re: Visual basic lessons?
Post by: Topaz on October 31, 2005, 03:03 PM
Experimentation and practice. Having smart friends to ask questions doesn't hurt either :)
Title: Re: Visual basic lessons?
Post by: Charlie on October 31, 2005, 03:19 PM
Well... Sense everyone is going WEWhoo over tihs, any of you teach well? LOL. Guys are freaking out o_O;;
Title: Re: Visual basic lessons?
Post by: Warrior on October 31, 2005, 03:19 PM
Too much of a headache if you ask me when thoroughly reading documentation on the language will help you in the long run.
Title: Re: Visual basic lessons?
Post by: Charlie on October 31, 2005, 03:21 PM
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.
Title: Re: Visual basic lessons?
Post by: Yegg on October 31, 2005, 04:10 PM
Quote from: Topaz on October 31, 2005, 03:03 PM
Experimentation and practice. Having smart friends to ask questions doesn't hurt either :)
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?
Title: Re: Visual basic lessons?
Post by: Charlie on October 31, 2005, 04:53 PM
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.  :'( :'(
Title: Re: Visual basic lessons?
Post by: Explicit on October 31, 2005, 05:07 PM
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!
Title: Re: Visual basic lessons?
Post by: Charlie on October 31, 2005, 05:12 PM
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  ???
Title: Re: Visual basic lessons?
Post by: Explicit on October 31, 2005, 05:17 PM
Quote from: Explicit[nK] on October 31, 2005, 05:07 PM
Take your time on each section, and if you don't understand a word, then look it up.

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.
Title: Re: Visual basic lessons?
Post by: Yegg on October 31, 2005, 08:05 PM
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.
Title: Re: Visual basic lessons?
Post by: Explicit on October 31, 2005, 08:29 PM
Quote from: Adron on October 31, 2005, 11:30 AM
Quote from: Explicit[nK] on October 30, 2005, 11:24 PM
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.

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.

This was aimed at the perspective of the inexperienced.
Title: Re: Visual basic lessons?
Post by: Topaz on October 31, 2005, 09:13 PM
There are many things that books don't teach, and thats where experimenting with objects and functions come into play.
Title: Re: Visual basic lessons?
Post by: Yegg on November 01, 2005, 05:06 PM
Quote from: Topaz on October 31, 2005, 09:13 PM
There are many things that books don't teach, and thats where experimenting with objects and functions come into play.
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".
Title: Re: Visual basic lessons?
Post by: MyndFyre on November 01, 2005, 06:02 PM
Experimenting is a great supplement to online tutorials/lessons and books.

As I've said in the way I learned JavaScript (http://hotwired.lycos.com/webmonkey/programming/javascript/tutorials/tutorial1.html), 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.
Title: Re: Visual basic lessons?
Post by: Yegg on November 01, 2005, 07:07 PM
Quote from: MyndFyre on November 01, 2005, 06:02 PM
Experimenting is a great supplement to online tutorials/lessons and books.

As I've said in the way I learned JavaScript (http://hotwired.lycos.com/webmonkey/programming/javascript/tutorials/tutorial1.html), 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.
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.
Title: Re: Visual basic lessons?
Post by: Charlie on November 02, 2005, 01:06 AM
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)
Title: Re: Visual basic lessons?
Post by: Explicit on November 02, 2005, 01:45 AM
Parents know a great amount, even if it may not seem like it.
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 02, 2005, 07:01 AM
First, do hello world.
Private Sub Form_Load()
    Call MsgBox("Hello world!") 'Use call. If != call, = ugly. =)
End Sub

Then learn some more stuff.
Private Sub Form_Load()
    Dim I as Integer: For I = 1 to 5
        Call MsgBox(I & ": Hello world!")
    Next i
End Sub


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)
Title: Re: Visual basic lessons?
Post by: Charlie on November 02, 2005, 07:15 AM
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
Title: Re: Visual basic lessons?
Post by: MyndFyre on November 02, 2005, 08:52 AM
You use the form designer.
Title: Re: Visual basic lessons?
Post by: Yegg on November 02, 2005, 02:06 PM
Quote from: Charlie on November 02, 2005, 07:15 AM
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
PictureBox, ImageControl? Havn't used Visual Basic 6 in a long time.
Title: Re: Visual basic lessons?
Post by: Charlie on November 02, 2005, 02:55 PM
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.
Title: Re: Visual basic lessons?
Post by: Charlie on November 02, 2005, 03:00 PM
I am studying, I bounce around from posting and studying. Studying gets so borring so quickly :D
Title: Re: Visual basic lessons?
Post by: Charlie on November 02, 2005, 03:07 PM
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.
Anyways, how does the supernet collect the smaller networks...I'm so confused by this...Can someone make it more clear?

-Charlie
Title: Re: Visual basic lessons?
Post by: Explicit on November 02, 2005, 03:17 PM
Static routing?
Title: Re: Visual basic lessons?
Post by: Yegg on November 02, 2005, 04:27 PM
Start a new thread on that topic. This thread has gone for too long a time.
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 02, 2005, 08:45 PM
Quote from: MyndFyre on November 02, 2005, 08:52 AM
You use the form designer.

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)
Title: Re: Visual basic lessons?
Post by: Tazo on November 02, 2005, 09:18 PM
someone needs to do a 'lesson' thing for C++  :-*
Title: Re: Visual basic lessons?
Post by: Mangix on November 02, 2005, 11:21 PM
books are a nice source :P
Title: Re: Visual basic lessons?
Post by: Tazo on November 03, 2005, 05:53 AM
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
Title: Re: Visual basic lessons?
Post by: Warrior on November 03, 2005, 06:05 AM
C++ for dummies wasn't that bad of a read iirc.
Title: Re: Visual basic lessons?
Post by: Yegg on November 03, 2005, 09:02 AM
"C++ Without Fear" is also a good C++ beginners book. Your local library may have a copy as mine did.
Title: Re: Visual basic lessons?
Post by: hismajesty on November 07, 2005, 09:11 PM
I'll give you lessons, for a price... :)
Title: Re: Visual basic lessons?
Post by: Explicit on November 07, 2005, 09:43 PM
Do you accept nude photos in exchange for lessons? ;)
Title: Re: Visual basic lessons?
Post by: hismajesty on November 07, 2005, 10:19 PM
Depends on who they're of. :P
Title: Re: Visual basic lessons?
Post by: Explicit on November 08, 2005, 01:00 AM
Quote from: hismajesty[yL] on November 07, 2005, 10:19 PM
Depends on who they're of. :P

Yours truly! :)
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 09, 2005, 09:21 PM
Quote from: Explicit[nK] on November 08, 2005, 01:00 AM
Quote from: hismajesty[yL] on November 07, 2005, 10:19 PM
Depends on who they're of. :P

Yours truly! :)

I saw that one. My penis didn't rise for weeks.
Title: Re: Visual basic lessons?
Post by: Explicit on November 09, 2005, 09:52 PM
Quote from: Joe on November 09, 2005, 09:21 PM
Quote from: Explicit[nK] on November 08, 2005, 01:00 AM
Quote from: hismajesty[yL] on November 07, 2005, 10:19 PM
Depends on who they're of. :P

Yours truly! :)

I saw that one. My penis didn't rise for weeks.

I thought you were born that way...
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 09, 2005, 11:01 PM
Quote from: Explicit[nK] on November 09, 2005, 09:52 PM
Quote from: Joe on November 09, 2005, 09:21 PM
Quote from: Explicit[nK] on November 08, 2005, 01:00 AM
Quote from: hismajesty[yL] on November 07, 2005, 10:19 PM
Depends on who they're of. :P

Yours truly! :)

I saw that one. My penis didn't rise for weeks.

I thought you were born that way...

Yeah, well.. man, that was a good one.
Title: Re: Visual basic lessons?
Post by: Charlie on November 10, 2005, 08:56 PM
My topic has lived on! Plus, I'm reading a book...:D So yeah.
Title: Re: Visual basic lessons?
Post by: Yegg on November 10, 2005, 10:49 PM
Heh, you're topic has only lived on because people insist on turning random threads into a lounge.
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 11, 2005, 12:09 AM
Quote from: Yegg on November 10, 2005, 10:49 PM
Heh, you're topic has only lived on because people insist on turning random threads into a lounge.

Hah, something wrong with that? =)
Title: Re: Visual basic lessons?
Post by: Topaz on November 11, 2005, 01:49 AM
your* You're always confusing the two.
Title: Re: Visual basic lessons?
Post by: hismajesty on November 11, 2005, 11:31 AM
Quote from: Charlie on November 10, 2005, 08:56 PM
My topic has lived on! Plus, I'm reading a book...:D So yeah.

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.
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 11, 2005, 02:59 PM
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)?
Title: Re: Visual basic lessons?
Post by: Yegg on November 11, 2005, 04:43 PM
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.
Title: Re: Visual basic lessons?
Post by: hismajesty on November 11, 2005, 06:37 PM
It's only like a 13 day old topic...
Title: Re: Visual basic lessons?
Post by: FrOzeN on November 11, 2005, 08:06 PM
Quote from: Charlie on November 02, 2005, 07:15 AM
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
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.)
Title: Re: Visual basic lessons?
Post by: Charlie on November 27, 2005, 09:45 PM
Hey guys I'm back!!!!! hismagesty <3 I'll pay you nude pics of Joe. Roflmao.
Title: Re: Visual basic lessons?
Post by: Joe[x86] on November 28, 2005, 06:56 AM
Quote from: Charlie on November 27, 2005, 09:45 PM
Hey guys I'm back!!!!! hismagesty <3 I'll pay you nude pics of Joe. Roflmao.

Ask TehUser, he has some laying around somewhere.
Title: Re: Visual basic lessons?
Post by: Explicit on November 28, 2005, 02:55 PM
Quote from: Joe on November 28, 2005, 06:56 AM
Quote from: Charlie on November 27, 2005, 09:45 PM
Hey guys I'm back!!!!! hismagesty <3 I'll pay you nude pics of Joe. Roflmao.

Ask TehUser, he has some laying around somewhere.

Disgusting.