English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi, I want to click on a command button from a form i've created in visual basic 6.0, and once I click it, I want the program to end.

Can you please help me? Thanks!

2007-06-16 10:14:56 · 5 answers · asked by r c 1 in Computers & Internet Programming & Design

5 answers

You can use the following command...

End ' this will halt your program

You can also use

unload me

2007-06-16 14:39:59 · answer #1 · answered by MarkG 7 · 3 0

Program Visual Basic 6.0

2016-12-16 20:43:09 · answer #2 · answered by Anonymous · 0 0

1) Else There can't be anything other than HoursWorked < 10 Or HoursWorked > 60, so there's no need to test for that condition. 2) You DO need the input box again, or it'll keep failing. bHours = false Do HoursWorked = InputBox("Enter Hours Worked", "Employee Hours") If HoursWorked > 10 Or HoursWorked <= 60 Then PayRate = InputBox("Enter Rate Per Hour €", "Employee Rate") bHours = True Else MsgBox(" Number of Hours Must be Between 10 and 60") End If Until bHours

2016-04-01 00:31:04 · answer #3 · answered by Anonymous · 0 0

You can try application.exit if it is a one form application. if it is more than one form, then you will need to close all of the forms for the application to close completely from memory

2007-06-16 11:02:28 · answer #4 · answered by marketplacesoftware 4 · 0 1

http://www.thescarms.com/VBasic/StopProcess.aspx

2007-06-16 10:30:44 · answer #5 · answered by Anonymous · 0 1

fedest.com, questions and answers