MonthView Control in Visual Basic6.0


A MonthView control display the current month and lets the user scroll through othe month as well .The day,month and year can be displayed using the month view control.

 

1.Click on “Start” . Then select “All Programs, Microsoft Visual Studio 6.0 and  Microsoft Visual Basic 6.0.” .

2. Select “Standard EXE” from the list in the New Project dialog box and click on “Open.” Click on “Project” on the menu bar, then select “Components” from the drop-down menu.

3. Scroll down the list in the box until Microsoft Windows Common Controls2 6.0 (SP4) is visible. Click on the checkbox to select the component and then click on “OK.” All components show in the Toolbox.

 

 

 

 

 

 

 

 

 

 

 

 

4. Choose the “MonthView1” control from the list of controls in the toolbox. Place the control on the form in Visual Basic.Also place Textbox1 to the Form1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Double click on Form1.Code window is open,write code here as shown in figure below:

 

 

 

 

6.Press<F5> to run the program.Output is:

Comments are closed.