Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class Question Please Read.

Status
Not open for further replies.

herb8

Programmer
Sep 4, 2001
45
US
Im kind of new to classes and need to know how to troubleshoot the class. I read somewhere there is a way to raise an error event in the class to allow you to step through it. Any ideas?
Thanks in advance!
-Matt
 
Well it is always a good idea to raise and throw a error so when something goes wrong so that the code calling the method in the class can handle whatever happened. Look up Try Catch in the VS help.

If you want to step through your code put a breakpoint before the area you believe you code is crashing then run the project. When the compiler gets to the area you have your breakpoint in it will switch to the code view so you can step through your code one line at a time. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Thanks for the ideas though im looking for something a bit different. Its more like a user control that im adding to the project. I need to know how to stop it and step through it as it runs. Hope this helps a little more.
Thanks again,
Matt
 
uh do you have the code for this control? If you do just ensure it is part of your project and do as I sugested above. I have created my own user controls and managed to step through them useing the same method. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top