>Is there something like this in VB? How do I catch (so to speak) the values that are being passed into my program. It is a simple program. Just a form that displays data and a number of command buttons. When the form closes (program exits) a numeric value is passed.