3800 Visual basic ?

beyerch

Addict
Jan 20, 2009
704
0
Originally posted by Adam86@Mar 3 2004, 08:44 AM
Im working on a project for visual basic right now and i need to make a command button so when you click it, you are asked wether you would like to exit the program or not. press yes it exits, press no it doesnt. does anybody know the code that i need to put in for this to be done? thanks a lot!


--Adam
public function onButton_click

response = msgbox("Would you like to Quit? (Y/N)",vbYesNo)

if response = vbYes then
end
end if

end function


or ......


if msgbox("Would you like to Quit? (Y/N)",vbYesNo) = vbYes then
end
end if
 
Old Thread: Hello . There have been no replies in this thread for 90 days.
Content in this thread may no longer be relevant. Consider starting a new thread to get fresh replies.

Thread Info

  • A
    Created
  • 3
    Replies
  • 302
    Views
  • Participants list