Monthly Archives: May 2015

Shutdown, Restart and Logoff codes in Visual Basic 6

Hi everyone! Our next program to create is on how to shutdown, restart and logoff our computer in Visual Basic 6.

Before we start our tutorial let me remind you that you should save all your work to make sure you don’t loss your files.

Let us proceed now to the step by step procedure of creating the program.

1. Create a new project in your vb6 program and select Standard EXE.

2. By default there is only one Form (Form1). Rename the Form1 into ShutdownFrm.

3. We are going to design the form, open ShutdownFrm. We need four command buttons, rename the first button into cmdShutdown with the caption Shutdown, next button into cmdRestart with caption Restart, rename the next button into cmdLogoff with the caption Logoff and the last one into cmdAbort with the caption Abort. Save the visual basic project and the form as well in the same folder.

Visual Basic 6 source codes compilation

The following are the list of Visual Basic 6 downloadable source codes. will be posting a step by step tutorial on the following source codes.

1. Print image in data report
2. Load rtf file
3. Sample of error handling in vb6
4. Filter records by date range
5. Form Validation
6. Random string
7. Open pdf in vb6
8. Upload mysql, dump/drop mysql database, create table in visual basic 6
9. Filter record via combo box
10. Matching type game
11. Sort record in listview
12. Sample print receipt
13. Populate textbox from record in database
14. Append query demo in ms access and vb6
15. Add and remove item in listview with database
16. Add and remove item in combo box with database
17. True or false game with database
18. Login system with attempt counter
19. Login system with user registration
20. Login system with user account management