<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-7669344112578632302</id><updated>2009-03-01T23:30:26.158-08:00</updated><title type='text'>C0D3 M0NK3YZ</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default?start-index=26&amp;max-results=25'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-4123970981147219835</id><published>2009-01-16T02:14:00.000-08:00</published><updated>2009-01-16T02:40:52.125-08:00</updated><title type='text'>Friday, January 16: the final day, basically</title><content type='html'>Greetings, hard working code monkeys!&lt;br /&gt;&lt;br /&gt;Today is the last day before the exam week. As such, I will list both the final requirements for your exam project, and I will list exactly where you stand for each item which needed to have been completed along the way.&lt;br /&gt;&lt;br /&gt;Part the First: PROJECT REQUIREMENTS&lt;br /&gt;&lt;br /&gt;A) You wil need to make use of at least seven of the ten blog postings in the construction of your project&lt;br /&gt;&lt;br /&gt;B) Each instance of use must be fully commented in your code: that is, there must be a comment listing the date and a brief name of the posting, as well as the website address for that post, and a description of what this particular technique or code snippet does to make your program work&lt;br /&gt;&lt;br /&gt;C) Your project needs to do something, and I need to be able to understand what that something is BEFORE I run it. You will understand my reluctance to "just run the program and see what it does" :-0&lt;br /&gt;&lt;br /&gt;D) Your project needs to work. If I cannot get it to run, there will need to be points taken off for that.&lt;br /&gt;&lt;br /&gt;E) Consideration will also be given as to just how original your program is. In other words, if you simply copy stuff we already did, that will not be as original as if you took the techcniques given and created something unlike anything done in the class.&lt;br /&gt;&lt;br /&gt;F) Liikewise, I will be making some personal judgements on your programs; call it the Uncle Paulie coolness factor.&lt;br /&gt;&lt;br /&gt;OK, those are the project requirements. Here is where you stand with the steps you were supposed to have taken thus far:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PROJECT NAME/DESCRIPTION/PROJECT STARTED&lt;/strong&gt;&lt;br /&gt;EVERYONE HAS DONE THIS&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;COMMENTS EMAILED&lt;/strong&gt;&lt;br /&gt;I have them from everyone except Josh and Ariel&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;BLOG POSTINGS THAT WILL HELP&lt;/strong&gt;&lt;br /&gt;I only have these from Callum, Jake, Tom and Dillon, Evan, Ryan N. and E.J. (sort of, hey Ejjjj, you forgot the URLS!)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UPLOADED THE PROJECT AT LEAST ONCE&lt;/strong&gt;&lt;br /&gt;I have this from everyone except James, Ariel and Joshua&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-4123970981147219835?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/4123970981147219835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=4123970981147219835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4123970981147219835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4123970981147219835'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/friday-january-16-final-day-basically.html' title='Friday, January 16: the final day, basically'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-4590628472048713559</id><published>2009-01-14T07:21:00.000-08:00</published><updated>2009-01-14T07:36:32.188-08:00</updated><title type='text'>Wednesday, January 14: two days left before the exam week!</title><content type='html'>Greetings, privateers of code!&lt;br /&gt;&lt;br /&gt;I'll just get right to it: here is where you all stand today:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Start Project/Name and Description: &lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;Everyone has completed this part, hooray!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Project comments:&lt;/span&gt;&lt;/strong&gt; these were supposed to be emailed to me as a separate document. I never received these from Ariel or Joshua, and only got the most minimal comments emailed by Dillon and Ryan C. I STILL need these comments emailed so do that straight away. And yes, of course, copy and paste them from your current exam project&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Blog postings that will help:&lt;/strong&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;I only have these from Callum, Jake and Thomas, plus 5 out of 10 for Dillon. The rest of you need to get this DONE, ASAP. Either post them in our Google group, or email them to me. &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;Either way, they need to be included in the updated comments of your projects which you will upload today.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Additionally, I will need each of you to copy and paste the entire code of your current project, comments and all, and paste it into the body of an email. The subject line must include your name, the phrase "my exam code" and todays date, which is Wed, Jan 14&lt;br /&gt;&lt;br /&gt;Let's do it, let's get it done!&lt;br /&gt;&lt;br /&gt;Mr. L&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="mailto:mrlarue2009@gmail.com"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-4590628472048713559?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/4590628472048713559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=4590628472048713559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4590628472048713559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4590628472048713559'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/wednesday-january-14-two-days-left.html' title='Wednesday, January 14: two days left before the exam week!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-7169105002440535834</id><published>2009-01-13T05:45:00.000-08:00</published><updated>2009-01-13T05:48:12.650-08:00</updated><title type='text'>Tuesday, January 13: Three days left!</title><content type='html'>Greetings, one and all,&lt;br /&gt;&lt;br /&gt;The subject header says it all; or at least most of it. You have three days left to work on your final exam projects, not including the actual exam day. I will be issuing a final set of project specs by tomorrow; in the meantime, continue what you have been doing already, and upload your work to our account at Box.net BEFORE the end of the class&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-7169105002440535834?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/7169105002440535834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=7169105002440535834' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/7169105002440535834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/7169105002440535834'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/tuesday-january-13-three-days-left.html' title='Tuesday, January 13: Three days left!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-3487766327935347222</id><published>2009-01-09T08:33:00.000-08:00</published><updated>2009-01-09T08:47:39.781-08:00</updated><title type='text'>Friday January 9: as long as we have code, who cares about snow?</title><content type='html'>Howdy rowdy codies!&lt;br /&gt;Ok, here's where stand on the exam project:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Project name and a description&lt;/strong&gt;&lt;br /&gt;Everyone except Ryan C. has posted or emailed a description. However, I'm still lacking a name from the following people:&lt;br /&gt;Callum&lt;br /&gt;Ariel&lt;br /&gt;Joshua&lt;br /&gt;Evan&lt;br /&gt;Sean&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Project comments&lt;/strong&gt;&lt;br /&gt;I have a good start on comments from the following:&lt;br /&gt;Callum&lt;br /&gt;Sean&lt;br /&gt;Jake&lt;br /&gt;Ryan N. (holy crap, the most commenting you've EVER done)&lt;br /&gt;Tom&lt;br /&gt;&lt;br /&gt;I also have some very minimal commenting from :&lt;br /&gt;Dillon&lt;br /&gt;Evan&lt;br /&gt;E.J.&lt;br /&gt;&lt;br /&gt;I HAVE NO COMMENTS ON FILE FOR ANY OF THE REST OF YOU&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Blog postings that will help&lt;/strong&gt;&lt;br /&gt;I have ten blog postings received from Callum &amp;amp; Tom, and 2 from Dillon.&lt;br /&gt;&lt;br /&gt;NONE from the rest of you.&lt;br /&gt;&lt;br /&gt;This brings me to some new stuff:&lt;br /&gt;&lt;br /&gt;When you make use of the blog postings to develop your program ( and you have to, I'm requiring it!), you will need to insert a comment in your code when you do so. The comment can be a one liner if that gets the job done, BUT, I will need to ask that you copy and paste the exact web address of the blog posting in question as part of that comment&lt;br /&gt;&lt;br /&gt;This also holds true if you make use of resources you've found elsewhere on the 'Net. I am not requiring you to go out there and find stuff for this exam, but if you do, you'd better include a comment detailing what the code does and where you found the idea, ie, a website address.&lt;br /&gt;&lt;br /&gt;Look, n00bz doing a term paper have to use footnotes. Same thing here, only WE AIN'T N00Bz!&lt;br /&gt;&lt;br /&gt;Cheers, and happy coding&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-3487766327935347222?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/3487766327935347222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=3487766327935347222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/3487766327935347222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/3487766327935347222'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/friday-january-9-as-long-as-we-have.html' title='Friday January 9: as long as we have code, who cares about snow?'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-6102267384425392496</id><published>2009-01-07T17:53:00.001-08:00</published><updated>2009-01-08T02:54:54.842-08:00</updated><title type='text'>Thursday, January 8: you need to send me comments and blog postings!</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Greetings, exam beaters!&lt;/span&gt;  &lt;span style="font-weight: bold;"&gt;I am heartened to see that most of you have set up a new project, named it, and posted a brief description of what it is supposed to do. (I will be speaking with those few of you who have NOT done this yet.) &lt;/span&gt;  &lt;span style="font-weight: bold;"&gt;However, very few of you have written any sort of comments for this program yet, and only one of you has told me which blog postings he is going to make use of for the purposes of this eam project. That needs to change. TODAY. &lt;/span&gt;  &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;'nuff said!&lt;/span&gt;  &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Mr. L&lt;br /&gt;&lt;br /&gt;PS There is much more to do on these exam projects after we get past this point. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-6102267384425392496?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/6102267384425392496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=6102267384425392496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/6102267384425392496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/6102267384425392496'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/thursday-january-8-you-need-to-send-me.html' title='Thursday, January 8: you need to send me comments and blog postings!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-6408700028780047759</id><published>2009-01-06T09:04:00.000-08:00</published><updated>2009-01-07T03:07:51.750-08:00</updated><title type='text'>Wed Jan. 7: keep on keepin' on!</title><content type='html'>Greetings, code monkeys!&lt;br /&gt;&lt;br /&gt;Today, you will be continuing with what was begun yesterday. I have looked in both my email and in our Google group: most of you have a project description, and some of you have some (limited) project comments. The rest of you have given no proof that you've even begun, so I am assuming that you haven't. Here is the run down so far:&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Project name and description:&lt;/span&gt;&lt;br /&gt;So far everyone has posted a description of their exam project except Callum, Ryan C., Jake, and Ariel (and Joshua, yes, I know you were absent yesterday, please read yesterday's blog posting) This description needs to be posted in our Google group. HOWEVER, no one has told me the NAME of their project! Everyone needs to remedy that right way. As in NOW&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Comments written and emailed&lt;/span&gt;&lt;br /&gt;So far, I have only been emailed comments by Erik, Evan, Ryan N. and Thomas; and the only one whose comments wouldn't fit in a subject line for an email is Tom's. THIS IS AN EXAM REQUIREMENT. And now is definitely not the time to get cheap on me.&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Blog postings that will help&lt;/span&gt;&lt;br /&gt;So far, none of you has gotten this done yet. That needs to be remedied right way. Yes, that would mean NOW&lt;br /&gt;&lt;br /&gt;OK, you have stuff to do, and lots of it. Let's do it, let's get it done!&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-6408700028780047759?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/6408700028780047759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=6408700028780047759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/6408700028780047759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/6408700028780047759'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/wed-jan-7-keep-on-keepin-on.html' title='Wed Jan. 7: keep on keepin&apos; on!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-1778326510673114722</id><published>2009-01-04T14:34:00.000-08:00</published><updated>2009-01-05T08:37:24.511-08:00</updated><title type='text'>Monday, January 5: Welcome back!</title><content type='html'>&lt;span style="FONT-WEIGHT: bold"&gt;Greetings, noble VB programmers!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;We are almost at the end of our sojourn through Visual Basic: two short school weeks, then we're at the exam period. By my count, we have only eight classes left until then, INCLUDING today. And then, th-th-th-that's all folks! we are D-O-N-E. So we have to make these remaining days count.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;What I would like to begin with today is some basic exam prep. That may sound backwards, but think about it: exactly what kind of exam could we have in a class like this? How do you fit Visual Basic Programming into a multiple choice format? Shall we write an essay about our love for arrays, classes, modules and functions? Nahhhhh, I don't think so! Uncle Paulie don't play that way.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Don't misunderstand: there WILL be an exam, but at least part of it must be done beforehand. You've been working on projects all semester long, both your own, and "mini projects" I have assigned you to explore how various parts of this language work. Sooooooooooooo, at least some part of your exam will necessarily involve a "mini project" of your own design, that you work on BEFORE the actual exam week. (Hey, if we can't get first lunch, we should at least be the first people done with exams, right?)&lt;br /&gt;&lt;br style="FONT-WEIGHT: bold"&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold"&gt;So here is what we are going to begin with:&lt;br /&gt;&lt;br /&gt;A) Come up with a name for your project and a two or three sentence description of what it will do, and how you anticipate that it will work. Post this in our Google group under a heading that includes your name and the phrase "exam project description"&lt;br /&gt;&lt;br /&gt;B) Next, you will need to create a new project, name it as you said you would, and then, before you write so much as one line of code, THINK about what your program will need to work. What will it require in the way of arrays? Function calls? Modules? Timers? Loops? THINK, and then&lt;br /&gt;&lt;br /&gt;WRITE YOUR COMMENTS FIRST DIRECTLY INSIDE THE CODE FOR YOUR PROJECT&lt;br /&gt;&lt;br /&gt;after which, you will copy these comments into an email which you will send to me, said email having a Subject line that includes your name and the phrase "exam project comments"&lt;br /&gt;&lt;br /&gt;I will not accept any exam project where this has not been done first, and no kidding, if you're slacking with this part, I will send it back to you, and tell you to re-work it until you get it right.&lt;br /&gt;&lt;br /&gt;C) While you're writing these comments, you might want to think about all the lessons you've learned in this class thus far, and compile a list of the blog postings -- including the EXACT website address for that posting-- which you deem will be most helpful in creating your exam project. You will need to include at least ten of these in another email you will send to me; subject line should read "blog postings that will help" plus your name.&lt;br /&gt;&lt;br /&gt;Once this is done, you are free to work on your personal projects, or get cracking on your exam project.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;br style="FONT-WEIGHT: bold"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-1778326510673114722?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/1778326510673114722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=1778326510673114722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/1778326510673114722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/1778326510673114722'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2009/01/monday-january-5-welcome-back.html' title='Monday, January 5: Welcome back!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-4263785357910411736</id><published>2008-12-23T05:31:00.000-08:00</published><updated>2008-12-23T05:37:32.434-08:00</updated><title type='text'>Tues Dec. 23:   Please hand in ALL your projects as a zip file!</title><content type='html'>&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Gentlemen: there's nothing left to do today except to upload ALL the projects that you have completed, so that I may do some honest grading during the vacation. I DO have to enter in your grades during the vacation -- happy happy, joy joy!!-- so make sure to give me EVERYTHING, including your personal project, which better be marked as such. Additionally, your zip file better have your first and last name on it before you upload.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Other than that, &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:180%;color:#ff0000;"&gt;&lt;strong&gt;WE AIN'T DOING JACK SQUAT!&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-4263785357910411736?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/4263785357910411736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=4263785357910411736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4263785357910411736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4263785357910411736'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/tues-dec-23-please-hand-in-all-your.html' title='Tues Dec. 23:   Please hand in ALL your projects as a zip file!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-1731417691445030726</id><published>2008-12-17T07:37:00.000-08:00</published><updated>2008-12-18T07:19:31.093-08:00</updated><title type='text'>Thursday December 18, part THREE</title><content type='html'>OK, one last thing, and then you get to play on your own with your Classes. This time, we are going to use a control created by a class to make an object out of another class, and put that object on our form. In other words, we can create objects whenever we want!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is how you do it:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A) Make a new Class called "BlueTextBox". Please name it correctly!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B) add the proper "inherits" statement for a TextBox -- see if you can figure out to do this by looking at inherit statements you've done before&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C) Using the same proces I JUST SHOWEED YOU, set up a "Layout" SUB for this new Class. Here is what I want you to put inside that:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Text = "This is my new TextBox"&lt;br /&gt;BackColor = Color.Blue&lt;br /&gt;ForeColor = Color.Yellow&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D) In the "PopItUp" SUB that you created earlier, you will add some code to make an object from this new Class, and then place that object on your Form&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myTextBox As New BlueTextBox( )&lt;br /&gt;myTextBox.Location = New Point(200, 100)&lt;br /&gt;myTextBox.Size = New Size(400, 55)&lt;br /&gt;Form1.Controls.Add(myTextBox)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;E) Run your program, and see if you can get that new custom built TextBox to appear when you click on your Label!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once you have all of that going, do some exploration of your own, and see what else you can find out. MAKE SURE YOU POST A DISCUSSION ON WHAT YOU FIND!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, make sure to upload this new version of our project&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-1731417691445030726?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/1731417691445030726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=1731417691445030726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/1731417691445030726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/1731417691445030726'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/thursday-december-18-part-three.html' title='Thursday December 18, part THREE'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-2925312376659536012</id><published>2008-12-17T07:26:00.000-08:00</published><updated>2008-12-18T07:13:37.671-08:00</updated><title type='text'>Thursday Dec 18, PART TWO</title><content type='html'>OK, now that we've made a MsgBox show up, let's see if we can add to that SUB:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A) Add a TextBox to your form the way you've always done: just drag it on there!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B) rename it "HardWired"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C) In the SUB procedure that you just created in your module, add this line of code:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Form1.HardWired.Text = "TASTE THE RAINBOW!!"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D) Run the program again, and see if the message shows up in your textbox&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OK, that was pretty simple, so let's get right to PART THREE!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-2925312376659536012?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/2925312376659536012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=2925312376659536012' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/2925312376659536012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/2925312376659536012'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/thursday-dec-18-part-two.html' title='Thursday Dec 18, PART TWO'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-5456238140283419261</id><published>2008-12-17T07:03:00.000-08:00</published><updated>2008-12-18T05:23:17.380-08:00</updated><title type='text'>Thursday December 18: Building on what we've already done  PART ONE</title><content type='html'>&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;Hey there hi there ho there!&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;Today, we will continue with our work with classes. We will build on the project we worked on yesterday, adding several modifications to it. After we have done that, I will ask you to do some exploration of what we have learned on your own. Here is what we will be adding:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;A) You will make your label -- which is based on the Class called "RainBowLabel" -- do something by calling a SUB inside of a module. Then, I will show you how to do something else from within that same SUB procedure, and apply it to a control --in this case a textbox-- that you place on your form the way you've always done it: by just dragging it on to the form!&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;B) You will make a second Class, and use the "Layout" event to make that Class look a certain way&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;C) You will will use the Class that you made yesterday to create an object from the Class you just made in B), and then put that new object into your form.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;HERE IS HOW YOU DO ALL THAT:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;1) Re-open the project from yesterday&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;2) Add a new Class and name it "RainBowCalling"&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;3) Set up a SUB procedure in that module called&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;Public Sub PopItUp( )&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;4) Inisde that SUB, just put this one line of code:&lt;br /&gt;MsgBox("You dont taste one bit like skittles!!")&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;5) make sure that you "CALL" that SUB from inside the Class "RainBowLabel" by &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;getting back into the code for the RainBowLabel class, getting into its event list from the left hand pulldown, then look for the "Click" event in the right hand pulldown&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;6) inside the new SUB that jumps up out of nowhere, put in this line of code"&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;MsgBox("You dont taste one bit like skittles!!")&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;7) Run the program, and click on your label to see if it works&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;When everybody has that done, we'll go onto Part Two&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;Cheers,&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33cc00;"&gt;Mr. L&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-5456238140283419261?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/5456238140283419261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=5456238140283419261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/5456238140283419261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/5456238140283419261'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/thursday-december-18-building-on-what.html' title='Thursday December 18: Building on what we&apos;ve already done  PART ONE'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-7241005815532438765</id><published>2008-12-16T16:59:00.000-08:00</published><updated>2008-12-17T04:28:02.950-08:00</updated><title type='text'>Wed December 17: a more in-depth examination of classes</title><content type='html'>&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Greetings, exalted coders!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Today we will continue with our examination of classes, what they are and how they work. Let's start with the basic theory, since it seems to be a bit difficult to master, then we will move on to an example that proceeds bit by bit.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;A) The Theory: ALL of Vb.net is based on Classes. Everything you see in your program starts out as a Class, EVERYTHING. That's all your Forms, all the controls you put on a form, every last bit.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Classes INHERIT from other classes. That is, they get features that other classes already have because they "derive" from those other classes. Kind of like the way I get my blue eyes &amp;amp; love for building things from my dad, and my love of reading and knack from gardening from my mom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;You can create your own class, and give it features that the original class never dreamed of. My dad is a builder, but he never dreamed of building in code. My mom likes to garden, but HER gardens are like something from Martha Stewart. Mine look a lot more like "Little Shop of Horrors"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Classes are like blueprints: you use them to build objects, which are things you can actually see and use in your program. I'm already planning for next year's gardens; and next year, my "garden object" gets instantiated starting April 1st.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Classes can include functions, sub routines and calls to other functions and sub-routines that are inside separate modules. Because these modules are outside both your class, and whatever form you put your new object in, that new object can call those functions and subs, and DO stuff with them&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;OK, enough theory. Here's what I want you to do today:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;A) create a new project called BasicallyClasses plus your name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;B) Drag a Label onto Form1, and then lets look at its properties. A Label has lots and lots of them, including stuff like:&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Text&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;BackColor&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;ForeColor&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Name&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Width&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Height&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;and many many others. Some of these properties are "read only" meaning its pretty darned difficult to set them inside a Class -- but you can certainly try!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;C) A label also has a lot of methods: things that a label can DO. You can see a great big honking list of them by getting into the code for your form, and setting the pulldown menu at the top left to "Label1", then opening the pulldown menu at the top right. Yup, there's craploads of stuff in there!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;D) OK, now let's add a new class. Name this one "RainBowLabel" (Don't worry, you'll get to repeat this process later, and use your own name. Just humor me, m'Kay?)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;E) Just below the "Public Class...." line, add an inherits line of code like so:&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Inherits Windows.Forms.Label&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;F) Now lets look at the pulldown menus for this new class. The one at the left has an entry for "RainBowLabel events" Choose that. The one at the right will then list a bunch of stuff, including one for "Layout" Choose that one: it allows you to set some basic stuff for your label INSIDE the class.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;G) Notice that when you do this, the program creates a new "Sub" for you. That's where today's code will go. Remember those properties you saw in the first Label you just drgged onto the form? Let's set some of those, like so:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Text = "Chlorophyllllll"&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;BackColor = Color.Green&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;ForeColor = Color.Blue&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Name = "Green"&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Width = "149"&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Height = "20"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Please note that for some properties, you will get a message that it's "read only". This means you cannot set it here in the class. Or can you?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;H) Get into the form load event for your Form, and add this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Dim LabelOne As New RainBowLabel( ) 'create an object from the class&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Me.Controls.Add(LabelOne) 'add the object to the Form&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;I) run the program and oh crap.....! Now what? Well, we forgot to tell the program how big your Label is and where we want it. So its basically got NO SIZE AT ALL, and its located NOWHERE on the form! Here's what I did to fix that:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Add this to the code inside your class:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Location = New Point(200, 200)&lt;br /&gt;Size = New Size(400, 55)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;This says that our Class recognizes that these two things exist, but notice we don't specify how big our label will be here in the class, although we could have.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Add this code to your "form load" (see if you can reason out where it should go exactly)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;LabelOne.Location = New Point(200, 200)&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;LabelOne.Size = New Size(400, 55)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Now let's run it again and see what we get!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;OK, that's enough for this part. Now what I want you to do is to repeat the process, and make a class that will create some other custom control for your form. Use the same steps that I showed you, and also, see what additional things you can do with it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(51,255,51)"&gt;Mr. L&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-7241005815532438765?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/7241005815532438765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=7241005815532438765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/7241005815532438765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/7241005815532438765'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/wed-december-17-more-in-depth.html' title='Wed December 17: a more in-depth examination of classes'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-837569743224112409</id><published>2008-12-14T16:05:00.000-08:00</published><updated>2008-12-15T05:18:23.575-08:00</updated><title type='text'>Monday December 15: More fun with classes</title><content type='html'>&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;Greetings, chattering code monkeys!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;Today, you will be expected to do at least two separate yet equally important things:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;A) Create a project that contains at least one form and three classes. Make darned sure that its named after yourself, plus the word "Three Classes". Each class must represent something that is unique, ands each one must DO something. At least one of the classes must contain at least two or more controls -- you can use a Panel to hold them all together if you wish&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;Each one of these classes must be instantiated somewhere on your form. In other words, you gotta use all the stuff you create! Once you're done with that, upload the project, and then....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;B) Work on your personal project.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;Happy coding!&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(255,0,0)"&gt;Mr. L&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-837569743224112409?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/837569743224112409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=837569743224112409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/837569743224112409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/837569743224112409'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/monday-december-15-more-fun-with.html' title='Monday December 15: More fun with classes'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-8712721835075975978</id><published>2008-12-11T17:59:00.000-08:00</published><updated>2008-12-12T06:09:01.473-08:00</updated><title type='text'>Friday December 12: Coding with Class, PART TWO</title><content type='html'>&lt;span style="color:#ff0000;"&gt;OK, now I will show you something else I've done with my button: it calls a function inside a module, and then assigns the result to that TextBox on our form. Here's how I did it:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A) I made a new Module and called it "GoGetIt"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B) I added a Function to it that returns a String thtas random plucked from an array (sound familar?)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Module GoGetIt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function RandomEvil( ) As String&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim Letters() As String = {"an EVIL petting zoo?", "I want chicken, I want liver", "Meow mix, meow mix, please deliver", "I will call him...mini me", "Silence!", "I will not tolerate your insolence"}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim whichQuote As Integer = 0&lt;br /&gt;Dim SayIt As String&lt;br /&gt;Dim A As New Random 'set a random seed&lt;br /&gt;whichQuote = A.Next(0, Letters.Length - 1) 'number of elements in the Letters array&lt;br /&gt;SayIt = Letters(whichQuote)&lt;br /&gt;Return SayIt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End Module&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C) Then, in my code for the "redButton" class, I called that function by placing this line of code:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;RandomEvil( )&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;under the code that changes the buttons text and back color&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then, I sent the results of that Function to the TextBox on the Form:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Form1.TextBox1.Text = RandomEvil( )&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;So OK, show me something you can do with your button class. Or maybe make another class of your own. Your choice.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Cheers,&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Mr. L&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-8712721835075975978?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/8712721835075975978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=8712721835075975978' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8712721835075975978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8712721835075975978'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/friday-december-12-coding-with-class_11.html' title='Friday December 12: Coding with Class, PART TWO'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-8161325399138310243</id><published>2008-12-11T17:24:00.000-08:00</published><updated>2008-12-12T05:58:05.068-08:00</updated><title type='text'>Friday December 12: Coding with Class, PART ONE</title><content type='html'>&lt;span style="color:#ff0000;"&gt;Greetings, chattering code monkeys!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Today we are less than a month's worth of classes away from programming in Java. In celebration of this upcoming event --and just because its Friday-- we are going to look at a concept that Visual Basic has more or less copied from Java in the first place: the Class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;In Java, everything is a class; the whole darned language is Class-based. And, ever since VB went to .NET framework, Visual Basic has classes too. A Class is kind of like a blueprint: you use them to create actual objects. You've been using them all along: if you create a new Project and get into the code for your form, the very first line of code is &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="color:#ff0000;"&gt;"Public Class Form1"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Today we will create our own classes. You will start out simply, then branch off into your own creations. Here's how we will start:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;A) Create a new Project named after yourself plus the phrase "Legos"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;B) on the Form1 that you get, create a TextBox&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;C) We are going to create a new type of control that can go on your form, so the first step will be to create a Class. You do this by Clicking on the Project menu, then clicking on the menuitem "Add Class". I named mine redButton, since our new class will be based on the Button class that already exists in VB&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;D) You will notice that you will get an empty set of code that looks like this:&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Public Class redButton&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;End Class&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Since your new class will create a button, you need to tell the program that. So, the first line of code is as follows:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Inherits Windows.Forms.Button&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Classes can inherit properties and methods and other cool stuff from other classes, kind of like how I inherited my father's blue eyes and low tolerance for liars. Our class will be able to use all the stuff that buttons have, including this:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Private Sub redButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click&lt;/strong&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;'this stuff is all on one line&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;All buttons can be clicked. So will yours&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;The next step is to add something simple to that button click. How's about we start with its caption and color? Add this inside that click method thingamabob:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Text = "Whoo Hoo!""&lt;br /&gt;BackColor = Color.Red&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;The final step is to add this new type of button to your form. I did mine at Form Load:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;'create a new button from your class&lt;br /&gt;Dim myNewButton As New redButton( )&lt;br /&gt;'what text does this button have?&lt;br /&gt;myNewButton.Text = "Deep Thought"&lt;br /&gt;'add the Button that is created from the class to the form&lt;br /&gt;Me.Controls.Add(myNewButton)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;This code adds the new kind of button to your form when you run the program, and not until then. You can also set its size and location like so:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;'where on the form do we create this new button?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;myNewButton.Location = New Point(100, 50)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;'setting the size of the Button&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;myNewButton.Size = New Size(100, 55)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;OK, let's run that thing and see if it works. Then I'm going to show you some other different stuff I've done with my button, and I will ask you to come up with some new stuff of your own.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Cheers,&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#ff0000;"&gt;Mr. L&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-8161325399138310243?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/8161325399138310243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=8161325399138310243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8161325399138310243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8161325399138310243'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/friday-december-12-coding-with-class.html' title='Friday December 12: Coding with Class, PART ONE'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-8566561525699310940</id><published>2008-12-09T08:53:00.000-08:00</published><updated>2008-12-10T09:50:23.787-08:00</updated><title type='text'>Wed December 10: Actual for real randomness and pretty colors too!</title><content type='html'>Greetings VB coders!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Today we will make a project that does several things:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A) Creates truly random numbers that are DIFFERENT everytime you start the program&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B) Sets a limit to which number values are used -- basically, the smallest and the largest used&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C) Uses these random numbers to populate an empty array with values from another array&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D) Uses a for loop (which we still seem to have some issues with, at least some of us)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here's how we do it:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1) Start off by making a project called LottsaRandom, with your name appended to the end of it&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) Add two buttons and one TextBox to this project. Rename the first button to "Mustard", &amp;amp; change its text to Mustard as well. Rename the second button to "Ketchup", and change its text to read ketchup&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) rename the textbox to "codeSheet" and change its text to read "secret codes will go here"&lt;br /&gt;&lt;br /&gt;4) get into the code for this project, and just below where it says "Public Class Form1" create the following:&lt;br /&gt;&lt;br /&gt;a) an Integer variable called "whatChar"&lt;br /&gt;b) a String array that has all 26 letters of the alphabet, AND the numerals 0 to 9 AND the characters ! @ # $&lt;br /&gt;&lt;br /&gt;please not that each one of these items is an element in your String array. If you've forgotten how to make a String array, you have one as an example in our Ferris Bueller project&lt;br /&gt;&lt;br /&gt;c) create an empty String array like this ----&gt; Dim codes(7) As String&lt;br /&gt;notice that this is also a String array, but it has spaces for elements, not actual elements. Think of an empty egg carton.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;pause, take a breath, now for the real fun:&lt;br /&gt;&lt;br /&gt;OK, so now we have to make a SUB procedure (remember those? it seems like just yesterday...)&lt;br /&gt;This SUB has to be able to create truly RANDOM numbers, and it cannot start with the same random set of numbers every time!&lt;br /&gt;&lt;br /&gt;PLUS, the random values must fall within a certain range. Why? Well, because we are trying to randomly pick out certain elements from the array that has stuff in it, and put them in the array that doesn't have anything yet. There are only 40 elements in the array that's filled, so we don't need to get random values going up to 100, or 100; that would make no sense&lt;br /&gt;&lt;br /&gt;Here's how we do it:&lt;br /&gt;&lt;br /&gt;Public Sub SevenRandomNumbers( )&lt;br /&gt;Dim A As New Random 'set a random seed using the RANDOM class&lt;br /&gt;Dim x As Integer 'set an integer to use in the loop&lt;br /&gt;For x = 0 To 6 'go thru loop to fill codes array&lt;br /&gt;whatChar = A.Next(0, 40) 'number of elements in the Letters array&lt;br /&gt;codes(x) = whatChar 'whatever x value is, that element in the empty array is filled&lt;br /&gt;Next x&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OK, so now how do we "call" that SUB procedure? Simple, we get into the code for the "mustard" button (mustard, seed, get it? Oh well.....) and we call that SUB. Then we use the results we get to fill the textbox, like so:&lt;br /&gt;&lt;br /&gt;SevenRandomNumbers( ) 'call the sub&lt;br /&gt;Dim x As Integer&lt;br /&gt;For x = 0 To 6&lt;br /&gt;codeSheet.Text = codeSheet.Text &amp;amp; codes(x) &amp;amp; " "&lt;br /&gt;Next x&lt;br /&gt;&lt;br /&gt;OK, that oughtta do it. Lets try and run that program, and see what we get!&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-8566561525699310940?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/8566561525699310940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=8566561525699310940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8566561525699310940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8566561525699310940'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/wed-december-10-actual-for-real.html' title='Wed December 10: Actual for real randomness and pretty colors too!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-4964097003806719864</id><published>2008-12-07T13:03:00.000-08:00</published><updated>2008-12-09T06:23:12.801-08:00</updated><title type='text'>Tues December 9: SUBS are basically pretty cool!</title><content type='html'>OK, that's better. Now let's get some new stuff done!&lt;br /&gt;&lt;br /&gt;Today, we will explore creating our own SUB procedures. You've been using SUBS that VB automatically provides you: there's a SUB for form load, for a button click, etc etc.&lt;br /&gt;&lt;br /&gt;BASICALLY, a SUB is kind of like a function, only it doesn't return a value; it just does something. We will create a sub that is started at form load, and is then called every 3 seconds using our old friend the Timer&lt;br /&gt;&lt;br /&gt;We start by creating a new Project. Name it after yourself, plus the phrase "MySub"&lt;br /&gt;&lt;br /&gt;On the Form, please add a label. You don't need to rename it, but let's set its font to a decent size, say about 35 or so.&lt;br /&gt;&lt;br /&gt;In the form's code, you will be adding both a String array and an Integer variable, like so:&lt;br /&gt;Dim OldAd( ) As String = {"On curves ahead", "remember sonny", "that rabbits foot", "didnt save the bunny", "BURMA SHAVE"} 'this is all one line&lt;br /&gt;Dim PoemTick As Integer&lt;br /&gt;&lt;br /&gt;Let's try to remember where this gets typed, OK?&lt;br /&gt;&lt;br /&gt;OK, the next step is to create your very first sub. Really, all you have to do is type this:&lt;br /&gt;Sub ReadPoem( )&lt;br /&gt;&lt;br /&gt;This will automatically set up a place where you'll put in some code in a second&lt;br /&gt;&lt;br /&gt;The next step is to add a control that will make this SUB called ReadPoem( ) happen at a regular interval. That's our old friend, the Timer. So drag one onto your form. Again, no need to rename it, just doubleclick on it and add this to it's code:&lt;br /&gt;&lt;br /&gt;ReadPoem( ) This will make the sub happen at the interval you set in the Timer's property box (psssst, its at the lower right corner of the screen.) I set my interval at 3000 milliseconds&lt;br /&gt;&lt;br /&gt;OK, so now let's add some actual code to your SUB:&lt;br /&gt;If PoemTick &lt; text =" OldAd(PoemTick)"&gt; this will start you out at the beginning of the poem!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There, that ought to do it: run the program and see what you get!&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-4964097003806719864?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/4964097003806719864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=4964097003806719864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4964097003806719864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/4964097003806719864'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/tues-december-9-subs-are-basically.html' title='Tues December 9: SUBS are basically pretty cool!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-8186102863775180283</id><published>2008-12-07T12:59:00.000-08:00</published><updated>2008-12-08T03:06:13.169-08:00</updated><title type='text'>Monday December 8: Part One</title><content type='html'>&lt;span style="font-weight: bold;"&gt;UPLOAD ALL YOUR FILES&lt;br /&gt;&lt;br /&gt;NOW&lt;/span&gt;  &lt;span style="font-weight: bold;"&gt;This includes the latest version of your project from last Thursday (see &lt;/span&gt;&lt;a style="font-weight: bold;" href="http://codemonkeys323.blogspot.com/2008/12/thurs-dec-4-whats-next.html"&gt;HERE&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;) AND the mini-project where I asked you to combine two different techniques (also &lt;/span&gt;&lt;a style="font-weight: bold;" href="http://codemonkeys323.blogspot.com/2008/12/thurs-dec-4-whats-next.html"&gt;HERE&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;As of this moment, I don't have these files from any of you. Nothing else will take place in this class until they are uploaded to our account at Box.net&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Cheers,&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;Mr. L&lt;br /&gt;&lt;br /&gt;PS If the files in question have in fact been uploaded, by all means, please come to my desk and show me where they are.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-8186102863775180283?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/8186102863775180283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=8186102863775180283' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8186102863775180283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/8186102863775180283'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/monday-december-8-part-one.html' title='Monday December 8: Part One'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-1671085929857935473</id><published>2008-12-03T11:23:00.000-08:00</published><updated>2008-12-04T05:25:30.068-08:00</updated><title type='text'>Thurs, Dec. 4: What's next</title><content type='html'>greetings, one and all,&lt;br /&gt;Today, you only have to do two things:&lt;br /&gt;&lt;br /&gt;A) finish up the assignment from &lt;a href="http://codemonkeys323.blogspot.com/2008/12/wed-december-3-part-two.html"&gt;yesterday&lt;/a&gt; and upload both that little creation of yours, AND the "jukebox" project from &lt;a href="http://codemonkeys323.blogspot.com/2008/12/wed-december-3-something-old-something.html"&gt;THIS &lt;/a&gt;assignment&lt;br /&gt;&lt;br /&gt;B) work on your personal project, and upload a version of that today BEFORE the end of class&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;br /&gt;&lt;br /&gt;PS I am attempting to find some alternatives to the file hosting we have at Box.net I may ask some of you to participate in an experiment for this very purpose. I will appreciate your full cooperation in this effort.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-1671085929857935473?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/1671085929857935473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=1671085929857935473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/1671085929857935473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/1671085929857935473'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/thurs-dec-4-whats-next.html' title='Thurs, Dec. 4: What&apos;s next'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-9183733780206882578</id><published>2008-12-02T17:08:00.000-08:00</published><updated>2008-12-03T06:27:46.042-08:00</updated><title type='text'>Wed December 3: part two</title><content type='html'>OK, now that you've put together sound and comboboxes, I want you to repeat the process by doing this: put together in a project two things you've never made work together before. At least one of the controls you use should be something that has been demonstrated in this class. When you have done it, please post a discussion to our Google group describing what it is that you did. please include all relevant code.&lt;br /&gt;&lt;br /&gt;When you are done with this, please upload the Jukebox project you made, then carry on with the personal project you are tending to.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-9183733780206882578?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/9183733780206882578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=9183733780206882578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/9183733780206882578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/9183733780206882578'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/wed-december-3-part-two.html' title='Wed December 3: part two'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-2915563152921856113</id><published>2008-12-02T16:27:00.000-08:00</published><updated>2008-12-03T05:37:49.411-08:00</updated><title type='text'>Wed December 3: Something Old Something new</title><content type='html'>Greetings, chattering code monkeys!&lt;br /&gt;&lt;br /&gt;Today we are going to do at least two things before you get after your personal projects. This posting is about the first one; there'll be a second posting in short order.&lt;br /&gt;&lt;br /&gt;WHAT TO DO:&lt;br /&gt;&lt;br /&gt;A) create a new project, and name it after yourself plus the phrase "JukeBox"&lt;br /&gt;&lt;br /&gt;B) To this form, add a button and a combobox. Change the text on the button to "Play"&lt;br /&gt;&lt;br /&gt;C) get into the combobox's properties sheet, select the "collections" thingamabob, then add these items to it:&lt;br /&gt;&lt;br /&gt;Cars&lt;br /&gt;Girl U Want&lt;br /&gt;Musique Automatique&lt;br /&gt;I Gotta Wear Shades&lt;br /&gt;&lt;br /&gt;these are the names of some songs I have for you in the VB Depot folder. Please note that they are .wav files, as VB will not play mp3s, at least not that I've seen&lt;br /&gt;&lt;br /&gt;D) OK, now to get some code monkeyin' done! get into your code, and just beneath&lt;br /&gt;"Public Class Form1" add in a String variable named "DaFolder", another String variable called "MySong" and a String Array called Songs( ) that has as its elements the names of those songs you just put into the combobox. Make sure to add the .wav extension at the end of each filename&lt;br /&gt;&lt;br /&gt;E) In your "Form Load" event, you will set the value of "DaFolder" to wherever you are going to store the .wav files. Make sure you set the full pathname!&lt;br /&gt;&lt;br /&gt;F) OK, so that was all old stuff. There wasn't one thing on there that we haven't done before. Now for the new stuff! We are going to make use of a property of your combobox called "SelectedIndex". The items in a ComboBox are listed the same way as the elements in an array: they start at ZERO. So it's pretty easy to use this to select a certain element from an array, say an Array of song names. Here's how I did it in the button click event:&lt;br /&gt;&lt;br /&gt;'make sure that a song has been chosen&lt;br /&gt;If ComboBox1.SelectedIndex &lt; 0 Then&lt;br /&gt;MsgBox("Please choose a song!")&lt;br /&gt;Else&lt;br /&gt;'set up default VB wav player&lt;br /&gt;Dim Sound As New System.Media.SoundPlayer( )&lt;br /&gt;'establish where the sound folder is&lt;br /&gt;'and then pick a sound from that folder by the array&lt;br /&gt;MySong = Songs(ComboBox1.SelectedIndex)&lt;br /&gt;Sound.SoundLocation = DaFolder &amp;amp; MySong&lt;br /&gt;'load and then play the sound!&lt;br /&gt;Sound.Load( )&lt;br /&gt;Sound.Play( )&lt;br /&gt;&lt;br /&gt;OK, now here's the tricky part: I couldn't upload the song files, because they are too big to fit on Box.net. I will try to put them in the H drive, but failing that, I have them on a couple of thumb drives&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;br /&gt;&lt;br /&gt;PS there will be second part of this lesson -- be looking for it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-2915563152921856113?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/2915563152921856113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=2915563152921856113' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/2915563152921856113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/2915563152921856113'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/12/wed-december-3-something-old-something.html' title='Wed December 3: Something Old Something new'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-6399209550198908932</id><published>2008-11-20T18:50:00.000-08:00</published><updated>2008-11-21T07:57:22.734-08:00</updated><title type='text'>Fri Nov 21: Using combox boxes</title><content type='html'>Greetings, fellow code monkeez,&lt;br /&gt;&lt;br /&gt;Today being Friday and all, I thought that we should keep things as simple yet as informative as possible. Plus, I wanted to introduce you all to a couple of extremely useful controls:&lt;br /&gt;&lt;br /&gt;A) the PANEL&lt;br /&gt;&lt;br /&gt;B) the combobox aka, "pulldown menu"&lt;br /&gt;&lt;br /&gt;A panel is good for holding other controls together as if they functioned as one unit. Combo boxes are good for holding lists of items in a visible fashion, so you can see them and use them. We are going to make use of both today. I will show you how the first time around, then you will find some other uses for BOTH these controls&lt;br /&gt;&lt;br /&gt;OK, lets launch into this, shall we?&lt;br /&gt;&lt;br /&gt;Step A) start up a new project and call it PullDowns&lt;br /&gt;&lt;br /&gt;Step B) Add a button to your new form, and set its text to say "Shaazaam!"&lt;br /&gt;&lt;br /&gt;Step C) Next, add a Panel to your form. Make it as big as possible without overlapping the Button you just made. Set its background color to red or blue or green or something bright. Set its visibility to "False"&lt;br /&gt;&lt;br /&gt;Step D) Add a webbrowser control onto the Panel, and resize it so that it takes up most of the room inside the panel.&lt;br /&gt;&lt;br /&gt;Step E) drag a combobox onto the Panel, and set it just above the webbrowser control&lt;br /&gt;&lt;br /&gt;Now to set some properties and add some simple code. Here are the next steps:&lt;br /&gt;&lt;br /&gt;Step F) your ComboBox has a property called "ITEMS"; next to it is the word "Collections" followed by a little button with dots on it. Click on that button&lt;br /&gt;&lt;br /&gt;Step G) This pops up a place where you can add items to your combobox, similar to the way you added items to your menus the other day. Our collections list is going to consist of webpage addresses, something like this:&lt;br /&gt;&lt;br /&gt;http://www.thinkgeek.com/&lt;br /&gt;http://www.bittorrent.com/&lt;br /&gt;http://www.limewire.com/&lt;br /&gt;&lt;br /&gt;By all means, set your website addresses to whatever you want, as long as they are school appropriate&lt;br /&gt;&lt;br /&gt;Step H) Doubleclick on the combobox to get into its code. We are going to use the items in the combobox to direct the webbrowser control to display a webpage. The code for it is pretty simple:&lt;br /&gt;&lt;br /&gt;MsgBox(ComboBox1.SelectedItem)&lt;br /&gt;WebBrowser1.Navigate(New Uri(ComboBox1.SelectedItem))&lt;br /&gt;&lt;br /&gt;Step I) Now, add this code to that button you made:&lt;br /&gt;Panel1.Visible = True&lt;br /&gt;&lt;br /&gt;RUN your program to verify that it works; I will be observing you through LanSchool. Once you have mastered this, I want you to be able to prove what you know by using both a combobox and a panel in some other way. PLEASE POST A DISCUSSION ON HOW YOU DID THIS.&lt;br /&gt;&lt;br /&gt;Please upload this new mini project, then you may return to work on your project, which you will also upload before the class is done.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-6399209550198908932?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/6399209550198908932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=6399209550198908932' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/6399209550198908932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/6399209550198908932'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/11/fri-nov-21-using-combox-boxes.html' title='Fri Nov 21: Using combox boxes'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-2623172476746835329</id><published>2008-11-19T10:17:00.000-08:00</published><updated>2008-11-20T05:06:04.503-08:00</updated><title type='text'>Thurs Nov 20: Time to Clock OUT!!!</title><content type='html'>&lt;span style="font-size:180%;color:#ffffff;"&gt;Greetings, O keepers of the Microsoft code!&lt;br /&gt;Today, we are going to accomplish three great and wonderful goals:&lt;br /&gt;&lt;br /&gt;A) Learn the basics of using the TIMER control, and apply it to something useful&lt;br /&gt;&lt;br /&gt;B) See if you can apply the techniques you've learned to make something else happen at a regular interval, guided by a timer.&lt;br /&gt;MAKE A DISCUSSION POST ON OUR GROUP STATING WHAT YOU DID HERE&lt;br /&gt;&lt;br /&gt;C) work on your individual projects -- and be sure to UPLOAD both of todays projects to the "VBDEPOT" folder at BOX.net&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Right then, let's start with the first one. Here's what you have to do&lt;br /&gt;1) start up a new project and name it after yourself plus the phrase "TimingX"&lt;br /&gt;&lt;br /&gt;2) Add a label to Form1. You DON'T have to rename it, but you DO have to change the text and the font size. Make the size at least "42"; make the text say basically whatever you want, as long as its school appropriate&lt;br /&gt;&lt;br /&gt;3) Set the Label's "visible" property to FALSE&lt;br /&gt;&lt;br /&gt;4) Add a TIMER control to your form by dragging it from the toolbox onto to the Form. Set its "Interval" property to 1000, which means the same as one second&lt;br /&gt;&lt;br /&gt;5) get into the TIMER code by doubleclicking on it. Add this code snippet:&lt;br /&gt;&lt;br /&gt;' this calls a function named "secret word" thats stored in a module&lt;br /&gt;SecretWord( )&lt;br /&gt;&lt;br /&gt;6) OK, so now you need a function and a module to put it in. So, first things first, add a Module -- if you don't know how, ask your buddy, not me -- we've already done this several times now!&lt;br /&gt;&lt;br /&gt;7) In the module, you are going to create a function that will make the Label appear and disappear according to what interval is set in the timer. Like any good function, it will need to return a variable. Since we're dealing with a "visible/hidden" situation, we will only need two states, ON and OFF. so your variable will be a boolean.&lt;br /&gt;&lt;br /&gt;8) Here is the way I set up this function. Try it my way; or if you feel daring, try another way of doing this same thing:&lt;br /&gt;&lt;br /&gt;Public Function SecretWord( ) As String&lt;br /&gt;'the on or off variable&lt;br /&gt;&lt;br /&gt;Dim OnOff As Boolean = False&lt;br /&gt;&lt;br /&gt;'if the Label is hidden, then show it!&lt;br /&gt;If Form1.Label1.Visible = False Then&lt;br /&gt;Form1.Label1.Visible = True&lt;br /&gt;OnOff = True&lt;br /&gt;&lt;br /&gt;'if you can see the Label then HIDE it!&lt;br /&gt;Else&lt;br /&gt;Form1.Label1.Visible = False&lt;br /&gt;OnOff = False&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;'return the value of the variable&lt;br /&gt;Return OnOff&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;9) Finally, get back into Form1, and this to its LOAD statement:&lt;br /&gt;&lt;br /&gt;Timer1.Enabled = True 'make sure the timer is turned on&lt;br /&gt;SecretWord( ) 'call the function the first time&lt;br /&gt;&lt;br /&gt;OK, let's see if we can get that to work! I will come around to see if you've got it right. Once you've mastered that, I want to see you make a timer do something different: your choice as to what different will mean.&lt;br /&gt;&lt;br /&gt;The rest of the class will be yours&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-2623172476746835329?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/2623172476746835329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=2623172476746835329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/2623172476746835329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/2623172476746835329'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/11/thurs-nov-20-time-to-clock-out.html' title='Thurs Nov 20: Time to Clock OUT!!!'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-951216750322315814</id><published>2008-11-18T08:13:00.001-08:00</published><updated>2008-11-18T08:17:14.724-08:00</updated><title type='text'>Tues Nov 18: kicking butt, taking names</title><content type='html'>Or words to that effect! Hello, and welcome back. Today, you will be allowed time to work on your individual projects again. Pleae make sure that you upload them to our "Depot" folder sometime before the end of class.&lt;br /&gt;&lt;br /&gt;Additionally, I would like each of you to think of a specific request for a technique you would like to master. Please do so in the form of a discussion post, and title it your name plus "basically requests". I will do my best to incorporate theese requests into the curriculum, so please be sure that your request are as precise and as specific as possible. Remember, when the great computer was asked the question "what is the meaning of life, the universe and everything?" it took a million years for it to come back with the answer "42"&lt;br /&gt;&lt;br /&gt;Nuff said!&lt;br /&gt;&lt;br /&gt;Mr. L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-951216750322315814?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/951216750322315814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=951216750322315814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/951216750322315814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/951216750322315814'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/11/tues-nov-18-kicking-butt-taking-names.html' title='Tues Nov 18: kicking butt, taking names'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7669344112578632302.post-3733422483680168544</id><published>2008-11-16T06:26:00.000-08:00</published><updated>2008-11-17T05:39:10.783-08:00</updated><title type='text'>Mon Nov. 17: finishing up and moving on</title><content type='html'>Greetings, buccaneers of code,&lt;br /&gt;&lt;br /&gt;Today you will need to do things:&lt;br /&gt;&lt;br /&gt;A) Make absolutely sure that ALL the bugs have been worked out of your "Menus" mini-projects from last Friday. They should work as fully functioning webpage editors by now; when they do, please upload them to our folder on Box.net. Make sure they are named after yourself plus the word "menus"&lt;br /&gt;&lt;br /&gt;B) Continue working on your own projects. Pass them in as well at least 3 to 4 minutes before the end of the class.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mr. L&lt;br /&gt;&lt;br /&gt;PS If you discover anything cool, please be sure to post a discussion on our Google group. If you have any long term difficulties, please be sure to email me at my gmail address.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7669344112578632302-3733422483680168544?l=codemonkeys323.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codemonkeys323.blogspot.com/feeds/3733422483680168544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7669344112578632302&amp;postID=3733422483680168544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/3733422483680168544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7669344112578632302/posts/default/3733422483680168544'/><link rel='alternate' type='text/html' href='http://codemonkeys323.blogspot.com/2008/11/mon-nov-17-finishing-up-and-moving-on.html' title='Mon Nov. 17: finishing up and moving on'/><author><name>Uncle Paulie</name><uri>http://www.blogger.com/profile/06366961962380528547</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11002728610367334699'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>