Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

How do I get my main program to recognize a user-defined error in a user control?

$
0
0
Ok so I've got a user control, and I want to raise a user defined error in a sub in a user control via "err.raise", but have it be detected in my program's main form with the "on error goto errorhandler". Unfortunately when I do so, the on error statement in form1 doesn't detect the error being raised in the user control, so my program stops running, just as though there was no error detecting code used at all when the program gets to the err.raise code in the user control. Please help.

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>