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. Inettutor.com 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

Visual Basic Sourcecodes Part 8

Open PDF file in Visual Basic 6
Download link:
Download

Visual Basic 6 Print Picture in Data Report
Download link:
Download

Upload MySQL database using Visual Basic
Download link:
Download

Visual Basic Sourcecodes Part 7

How to connect Visual Basic to MS Access
Download link:
Download
Postlink:
More Info

Insert record in MS Access using Visual Basic
Download link:
Download
Postlink:
More Info

Updating a record in MS Access using Visual Basic
Download link:
Download
Postlink:
More Info

Visual Basic Sourcecodes Part 6

Populate Combo Box from database in Visual Basic 6
Download link:
Download
Postlink:
More Info

Login System without database in Visual Basic 6
Download link:
Download
Postlink:
More Info

Visual Basic Sourcecodes Part 5

Automated Class Scheduling System in Visual Basic
Download link:
Download link
Postlink:
More Info

Computerized Library System in Visual Basic 6.0
Download link:
Download link
Postlink:
More Info

Fusion Chart in Visual Basic 6 with database
Download link:
Download link
Postlink:
More Info

Visual Basic Sourcecodes Part 4

Dictionary Program in Visual Basic 6.0
Download link:
Download
Postlink:
More Info

Automated Student Council Election System in Visual Basic
Download link:
Download
Postlink:
More Info

Visual Basic Sourcecodes Part 3

Parish Record Keeping System in Visual Basic 6.0
Download link:
Download
Postlink:
More Info

Payroll System in Visual Basic 6.0
Download link:
Download
Postlink:
More Info

Visual Basic Sourcecodes Part 2

Science Learning Games using Visual Basic 6
Download link:
Download
Postlink:
More Info

Grade Management System using Visual Basic 6
Download link:
Download
Postlink:
More Info

Visual Basic Sourcecodes Part 1

Login Logout Monitoring System in Visual Basic
Download link:
Download
Postlink:
More Info

Insert flash animation (swf file) in Visual Basic
Download link:
Download
Postlink:
More Info