Date: Mon, 09 May 2005 16:40:26 -0500 (CDT) From: Mark Jacobson To: 810-030-01@uni.edu Subject: URL for Visual Basic web page... Hi Visual Basic students, Here is the URL: http://www.cns.uni.edu/~jacobson/ which easily links to: http://www.cns.uni.edu/~jacobson/c030.html We got a fast start today, and tommorrow's lecture portion of the class will review everything that we did in the lab. Vertical Scroll Bars have 5 relevant properties: Min, Max, LargeChange, SmallChange and Value Min = 50, Max = 2000, LargeChange = 200, SmallChange = 50 and Value = 1000 (milliseconds for Timer1.Interval will be 1000 to start, but can go as fast as 50 for 1/20th second or as slow as 2000 for a full 2 seconds. Timers have two relevant properties: Interval and Enabled The Timer1 object had a Timer event we added some Visual Basic code (statements) to. Private Sub Timer1_Timer() Form1.Backcolor = QBColor(theColor) theColor = theColor + 1 If theColor > 15 Then theColor = 0 End If End Sub The Vertical Scroll Bar we gave the name vsbSpeed and then we programmed its Change event to the following: Private Sub vsbSpeed_Change() Timer1.Interval = vsbSpeed.Value End Sub We'll go over all this code and these Visual Basic assignment and IF statements in class on Tuesday. We will review the Properties and Methods and Events for these and other controls tommorrow. Try to read over the PowerPoint presentation linked to from the c030.html page, if you get a chance. And start reading over Hour 1, Hour 2 and Hour 3 of the Visual Basic textbook. The textbook is broken into 24 small chapters, but unless you have some experience, you are likely to spent more than an HOUR on at least some of them, until we cover that material in class or lab. So don't worry if everything does not make sense until AFTER a class presents it and a lab tries it! If you install Visual Basic from the CD-ROM on your computer, you should be able to easily start playing around with examples after tommorrow's 2nd class and lab. Its overwhelming the first time or two, but after that its like riding a bike, easy once you know how to keep your balance! Mark