473,395 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Form error equivalent

In web forms i can do this
this.Error += some handler?
what is the equivalent for a winform? I'd like to catch unhandled form
exceptions.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Nov 15 '05 #1
2 1114
You can put this in your code (most likely main). This will catch all
unhandled exceptions in your application (unless you create new
AppDomains -- if you don't know if you are or not, then you're not)
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);



"Alvin Bruney" <vapor at steaming post office> wrote in message
news:OF**************@TK2MSFTNGP12.phx.gbl...
In web forms i can do this
this.Error += some handler?
what is the equivalent for a winform? I'd like to catch unhandled form
exceptions.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b

Nov 15 '05 #2
thanks, there seems to be no page or form level equivalent in winforms like
there is in webforms. I'll use what you suggested (or rather pass it on to
lady who asked).

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Philip Rieck" <st***@mckraken.com> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
You can put this in your code (most likely main). This will catch all
unhandled exceptions in your application (unless you create new
AppDomains -- if you don't know if you are or not, then you're not)
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);



"Alvin Bruney" <vapor at steaming post office> wrote in message
news:OF**************@TK2MSFTNGP12.phx.gbl...
In web forms i can do this
this.Error += some handler?
what is the equivalent for a winform? I'd like to catch unhandled form
exceptions.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sean Abrahams | last post by:
The following is a reprint of a message I sent to the tutor list a long time ago, that I haven't gotten around to discussing with anyone else and failed to hear a reply on the tutor list. Hoping...
0
by: - | last post by:
is there a '@@rowcount', '@@error' equivalent in mysql to use inside a stored procedure after a query statement?
3
by: Jeremy | last post by:
I am creating a form that a person enters a date span in yyyymm form. I want a box to pop up that tells the user "Please enter date in correct format" if the user has entered the data incorrect. I...
0
by: Trevor Best | last post by:
Access 2002 MDB -> SQL Server 2000 - ODBC Linked tables. B4 we start, this is not occurring in a recordset operation and yes I googled, even found my own fix, which I already use...
1
by: Paul Mendez | last post by:
Whenever I first try to enter data into my form, it prompts me with this following error: "The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less...
8
by: Tom | last post by:
Hi I have an aspx page which has javascript to configure xmldata. I added breakpoint to the button method. When I click submit button, it did not go to those breakpoint and show the following...
13
by: knot2afrayed | last post by:
I am trying to fix error- object does not exist- I want it possible to allow object not to exist. I am writing a script on a page that may or may not include a login form. For example-after a...
0
by: Wayne Smith | last post by:
I've taken the following code from a developers web site which should allow a user to register and receive an email message with a link to activate their account, but when I click the link on my...
2
by: JMasterJ | last post by:
Parse error: syntax error, unexpected T_STRING in /home/pbgwell/public_html/process-form_CC.php on line 16 Hi all! First post so take it easy on me if i make a mistake. I have done many post...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.