Sunday, February 22, 2009

Another VB6 New Lesson-Creating Menus

Good News! Another lesson is added for users. I have discussed creating menus for your applications earlier in vbtutor blog but I have not gone into the details yet. So, I have spent quite a bit of time to prepare the lesson to describe the steps in creating menu s for a VB application, I hope this will benefit all users! Any feedback please let me know by leaving comments in the blog.

To start viewing the new lesson, please click the link below:

Happy learning!

Thursday, February 19, 2009

Creating a CD player

Do you know that you can create your very own CD player using Visual Basic 6? Yes, you can do it fairly easily, and not much programming involved. The engine behind the CD player is the Microsoft Multimedia Control. This control is not normally included in the startup toolbox, you have to add this control by pressing Ctrl+T and select it from the components dialog box. The sample interface of a CD player is shown below:

Please click the following link to view the code:

Thursday, February 5, 2009

VBA-Some Basic Concepts

If you are keen about learning Visual Basic, then you must also learn how to create VBA programs.
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

Sunday, February 1, 2009

Creating a Calender in VB6

Creating a calender in VB6 is a relatively simple task. There is no need to write your own code. What you do is insert the calender component of an ActiveX Control that comes with VB6 into the form. However, the ActiveX control is not included into the toolbox by default, you have to add it with the following steps:
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!