View Full Version : Tutorials
deadidus
03-04-2002, 05:36 PM
Anybody got any good tutorials for vb?
lzicl_cash
03-04-2002, 10:34 PM
is VB hard to learn? or do you think i could learn it? or it wouldn't be worth it?
deadidus
03-05-2002, 02:13 AM
VB isn't too difficult too learn. The best part about Visual Basic and Delphi to me is that they don't require as much coding as Java or C++. VB is also easy to create programs with. I think its worth learning any programming language except COBOL.... I HATE COBOL... YOU NEED TO WRITE SO MANY LINES OF CODE TO GET IT TO DO ANYTHING... Here's a good link if you want some tutorials.
http://www.exhedra.com/vb/Tutorial/default.asp?lngWId=1
halcy0nical
03-05-2002, 02:37 AM
If you send me a message on AIM, Yahoo Messenger, or an email I can send you a zip file full of tutorials for VB. I would attach it here but it is too large of a file.
How do you have vb email you some info when u click the send button, or tell me what i need to modify this code i tried....
If ckHtml.Value = vbChecked Then bHtml = True Else bHtml = False
If ckHtml.Value = vbChecked Then MailTo.Send (Send = "cookie.text" & "id.text")
MailTo.Send (MailTo("peteman_48858@hotmail.com"))
halcy0nical
03-05-2002, 09:44 PM
http://www.asent.com/email_white_paper.htm should show you how to do what you are asking.
how do i open a .txt file to a list box?
BLaZiN
03-06-2002, 06:29 PM
Well, im pretty smart when it comes to learning things, i learned lots of HTML and java no help, many tricks on yahoo with no help, but...Is VB hard to learn? I might take a class in it next year, but i looked at some coding for it...ANd it looks so %%%%in complicated i didnt even know where to begin. I didn't know how to make %%%% with it. HTML, Java, all that %%%%...I learned just by lookin at examples. But VB and Delphi just confuse the hell outta me.
Later
deadidus
03-06-2002, 06:36 PM
VB is not difficult to learn and understand. It's a good "language" to learn.
how do i open a .txt file to a list box?
halcy0nical
03-07-2002, 12:23 AM
Say you have a list of words in file words.txt like the following:
dog
cat
monkey
rabbit
You would do:
Private Sub populate_list_click()
dim newword as string
dim numwords as long
numwords = 0
Open "C:/words.txt" for input as #1
while not eof(1)
input #1, newword
wordlist.additem newword
numwords = numwords + 1
wend
Close #1
msgbox(numwords & " were loaded into the list)
End Sub
Scott
03-07-2002, 12:40 AM
If anyone cares I have a site with some VB source code examples on it. I rebuilt it just a while ago so I don't have a ton of content yet, but it's still got some nice vb stuff on it. My Site (http://destructive-underground.com)
Topgun
03-11-2002, 09:55 PM
I have a question. What would be the easiest programming lanugage for me to learn reading some text or something? Because I just need something. Please help.
Topgun
03-25-2002, 11:31 PM
how do u load text using the commondialog conrtol? I can open a picture with it. This is the source i use to open a picture....
Private Sub
CommonDialog1.Filter = "Metafiles (*.WMF)|*.WMF"
CommonDialog1.Showopen
Image1.Picture = LoadPicture(CommonDialog1.Filename)
End Sub
What do you do to open up text?
halcy0nical
03-29-2002, 05:33 PM
What exactly do you want to load the text to? A list box, text box, etc...
how would u have vb read lines from a text document?
ex)
a
b
c
d
halcy0nical
03-29-2002, 07:32 PM
First add the common dialog control to your components list. Do this by right clicking the components list and going to "Components..." Then find "Microsoft Common Dialog Control 6.0 (SP3)", put a check next to it, and push the OK Button.
Loading into a list box....
You need:
- A list box (wordlist)
- A common dialog control (filemanager)
- A command button (loadlist)
Private Sub loadlist_click()
filemanager.showopen
if filemanager.filename = "" then
msgbox("Um, you didn't pick a file to open.....")
else
dim counter as long
dim newword as string
counter = 0
open filemanager.filename for input as #1
while not eof(1)
input #1, newword
wordlist.additem newword
counter = counter + 1
wend
close #1
msgbox(counter & " words loaded successfully!")
endif
End Sub
You can also use things like line input #1 and Input(LOF(1), 1). Also you can open the file for binary, but that is different. If this isnt what you wanted let me know.
Topgun
03-30-2002, 02:17 PM
Man I have just purchased my copy of Learn to Program with Visual Basic 6, it is the best! ALthough you might want to skip chapters 2 and 3, because chapter 3 talks about how to use the IDE. And chapter 2 just talks about what a computer does. Get this book if you don't know how to program in Visual Basic 6.
Topgun
03-30-2002, 05:04 PM
Here is some more information about the book I mentioned above.
The book is by John Smiley, his website is www.johnsmiley.com. I got it at barnes and noble for $29.99 not including taxes which would be about 2 dollars. So about $32.00. John Smiley's e-mail address is johnsmiley@johnsmiley.com. He answers all my questions and I'm sure he'll answer yours. Seriously get this book if you want to learn Visual Basic 6.0.
how would i have it select all the things in the list boxes at one time?
Topgun
03-30-2002, 09:43 PM
One more thing I wanna mention about this book is it is very easy to follow. I got through a six week course in less than 2 days. I'm not even confused yet. That should give you some more information about the book.
What does this look like when it isnt encrypted?
package y.dt;
// Referenced classes of package y.dt:
// _cls86, _cls79, _cls127
public class _cls0 extends _cls86
**
public void H()
**
super.ha = new _cls127();
super.H();
}
public _cls0()
**
}
}
halcy0nical
04-03-2002, 09:45 PM
That has nothing to do with yahoo games encryption. That segment of code you pasted is just a constructor.
chris
04-03-2002, 09:45 PM
This is off the wall. But I program in Delphi and I wanna start learning in VB.. can somebody tell me a site to download VB6 for free .... please..
it was the first cab file of Y! Dots...i was just tryin to see what some of the code looks like when its not encrypted
Kazaa has it...
search for Visual Basic 6 enterprise, or ms visual studios 6.0 enterprise
Topgun
04-04-2002, 07:08 PM
Best bet is to search for Visual Studio that way you'll get all of them.
deadidus
04-04-2002, 07:43 PM
Good Quote.
Topgun
04-04-2002, 08:17 PM
My quote?
Topgun
04-04-2002, 08:21 PM
You like this one better?
where do i put the cdlOFNAllowMultiselect into my code so i can select multiple things at once in a list box?
halcy0nical
04-05-2002, 10:38 PM
You don't need that unless I am misunderstanding what you are trying to do. A list works like this:
0 - a
1 - b
2 - c
3 - d
To find out what is at position 2 at a list:
msgbox(list1.list(2))
To add an item to a list:
list1.additem number
To remove an item from a list:
list1.removeitem(positiononlist)
To remove all items from a list:
list1.clear
that helps but one more question, how would i have winsock send multiple lines from the same listbox, or have it just read from the notepad and not have to open it into a listbox.
does the thing i said in the last post need an array? because thats what it looks like to me...hmmm..........
halcy0nical
04-06-2002, 03:12 PM
Say you had a list of commands called clist. If each winsock control represented one member of the list ie, 1:1, 2:2, 3:3 etc. you could do this:
dim x as integer
for x = 0 to num_items_on_list - 1
winsock(x).senddata clist.list(x)
next x
Or if one winsock control referenced X number of items on a list, ie 1:1, 1:2, 1:3 etc, you could do this:
dim x as integer
for x = 0 to num_items_on_list - 1
winsock.senddata clist.list(x)
next x
halcy0nical
04-08-2002, 11:40 PM
nums_item_on_list is an integer representing the total items on the list, you can also use the ubound property if you want.
how do i create an array of sockets?
Mark__C
06-20-2002, 02:26 PM
First, create a winsock. Then set that winsock's index to 0. After that, you can either add winsocks manually using the same method or you can create them at runtime by using Load().
Realged13
06-20-2002, 03:03 PM
Man this stuff sounds so confusing.
Realged13
06-20-2002, 10:48 PM
I also need a little help on HTML I know HTML is supposed to be easy but I'm just in the learning stages and trying to make HTML writing on my website instea dof text.
Topgun
06-21-2002, 05:17 PM
I have plenty of sites go to www.programmersheaven.com, or www.freevbcode.com, or www.smarthack.com and go to the e-books section and download the one on visual basic.
halcy0nical
06-23-2002, 12:53 AM
-={Angel}=- do you have a visual basic compiler? If not you will not be able to open any of these files :(
leblitzer
08-24-2003, 04:07 PM
Originally posted by deadidus
Anybody got any good tutorials for vb?
make vb tutorial
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.