Add MDI Form and Main Menu

In our previous tutorial I discuss on “How to Create Master/Detail Windows Forms” on our Library System Project.

Today we will add MDI Form and create a main menu to open the forms on our project. If you follow closely this tutorial you will have now several Windows Forms on your project.

Please follow the steps below to Add MDI Form and Main Menu on your Library System project.

Stop SelectedIndexChanged from Firing on Form Load Event

If you are using SelectedIndexChanged in your ComboBox may be you encounter a problem with events being fired even if you did not click the ComboBox.

This happens when you open and close your Windows Form. The workaround for this is to use RemoveHandler statement.

Here’s an example: RemoveHandler CreditTermIDComboBox.SelectedIndexChanged, AddressOf CreditTermIDComboBox_SelectedIndexChanged

And when you’re done executing the Form Load event you have to add back the handler again by using the AddHandler statement.

Here’s an example:

How to Create Master/Detail Windows Forms

On my last tutorial I discuss on “How to Display Data in Windows Forms”. This time I will teach you on “How to Create Master/Detail Windows Forms”.

Creating a master/detail form still requires the same method as displaying data in windows forms. Except that we use additional control called “DataGridView”. This control will display the related record known as child form.

Download Crystal Reports 2010 for Visual Studio Now

Last October 2010 I wrote an article about Crystal Reports for Visual Studio 2010. I am eagerly waiting for the release of this great reporting tool for Visual Studio. Finally, you can download it now for free. One click…No cost. No registration. No barriers. If you want to download earlier version, click here. Related article: Download Crystal Reports for Visual Studio 2012 The size of Crystal

How to Change Connection String at Run Time

One of the challenging parts in VB.NET is to change the connection string of your database location when you run your application.

This tutorial will help you solve this problem. This will apply only to SQL Server but it can be also modified easily to work with MS Access and other DBMS.

In my case I initialize this on the Form Load event on my Login form.

A simple PHP application that demonstrates the use of MVC pattern

Hi everyone, Over the last few days I've been trying to get a better idea of what MVC pattern is, how it's different from other patterns (ie 3-tier "view-data-logic pattern) and how in the world do you apply it in order to develop websites in PHP. So after some help from few people at www.stackoverflow.com and other websites I mocked up my very own little PHP app, that demonstrates my

Create Forms Criteria on the fly

Create criteria for forms in real time, as needed. An Instruction form will open when the project opens. The system was written using MS Access 2010 Default file format is Access 2003 Operations: 1. Create Form 2. Enter each form field's data type into the field's Tag Property 3. Save form’s information using the frmMaintainForms form 4. Select the form from the frmFormsMenu 5. The criteria form

Being a Programmer Video

Programmers are hard to deal with. This is the common words I heard from people who encounter a programmer. But I don’t think they understand how to really become a computer programmer. Being a programmer, all you do when you sit on your computer chair and hit the keyboard is to think what could be the best solution to your programming design. We sometimes run out of ideas and don’t care who’s