This is a blog that discusses anything related to Visual Basic and provides updates for VISUAL BASIC TUTORIAL website. Your comments and suggestions are welcome here. Thank you.
Sunday, February 22, 2009
Another VB6 New Lesson-Creating Menus
To start viewing the new lesson, please click the link below:
http://www.vbtutor.net/lesson37.html
Happy learning!
Thursday, February 19, 2009
Creating a CD player
Please click the following link to view the code:
http://www.vbtutor.net/lesson19.html
Thursday, February 5, 2009
VBA-Some Basic Concepts
Many of you may not be familiar with VBA, or may not heard of it at all. In any case, I suggest you take up VBA programming seriously because it is so useful! Let me share with you some facts about VBA, particularly Excel VBA.
VBA is the acronym for Visual Basic for Applications. It is an integration of the Microsoft's event-driven programming language Visual Basic with Microsoft Office applications such as Microsoft Excel, Microsoft Word, Microsoft PowerPoint and more. By running Visual Basic IDE within the Microsoft Office applications, we can build customized solutions and programs to enhance the capabilities of those applications.
Among the Visual Basic for applications, Microsoft Excel VBA is the most popular. There are many reasons why we should learn VBA for Microsoft Excel, among them is you can learn the fundamentals of Visual Basic programming within the MS Excel environment, without having to purchase a copy of Microsoft Visual Basic software. Another reason is by learning Excel VBA; you can build custom made functions to complement the built-in formulae and functions of Microsoft Excel. Although MS Excel has a lot of built-in formulae and functions, it is still not enough for certain complex calculations and applications. For example, it is very hard to calculate monthly payment for a loan taken using Excel's built-in formula, but it is relatively easy to program a VBA for such calculation. This book is written in such a way that you can learn VBA for MS Excel in an easy manner, and everyone shall master it in a short time!
To learn more about VBA, please log on to
http://www.vbtutor.net/VBA/vba_tutorial.html
Sunday, February 1, 2009
Creating a Calender in VB6
1. From the Project menu, choose Components
2. In the Components dialog, select Microsoft Windows Common Controls 2-6.0 and click OK.
The Calender control will be added to the toolbox. 3. Select the MonthView control icon from the Visual Basic ToolBox 4. Drag the MonthView control into the form. Now run the program and there you have your very own calender!
There is another way to create a calender in VB. This time you use the Microsoft Calender Control 11. As this is also an ActiveX control, it is not launched into the toolbox by default, you need to add it in using the method similar to the above example.
1. From the Project menu, choose Components
2. In the Components dialog, select Microsoft Calender Control 11 and click OK.
Now the calender control will appear in the toolbox. Drag it into the form and press F5 to run the program, and you have your calender as shown below:
Try them out yourself. Everyone can do it!