Click here to Skip to main content
15,920,801 members
Home / Discussions / C#
   

C#

 
GeneralRe: Timer Display data from database Pin
jacklynn_mei18-Nov-07 22:56
jacklynn_mei18-Nov-07 22:56 
GeneralRe: Timer Display data from database Pin
sindhutiwari18-Nov-07 23:00
sindhutiwari18-Nov-07 23:00 
GeneralRe: Timer Display data from database Pin
jacklynn_mei19-Nov-07 14:21
jacklynn_mei19-Nov-07 14:21 
AnswerRe: Timer Display data from database Pin
KennyPatel19-Nov-07 0:22
KennyPatel19-Nov-07 0:22 
QuestionAbout InvalidOperationEception Pin
jason_mf18-Nov-07 21:05
jason_mf18-Nov-07 21:05 
AnswerRe: About InvalidOperationEception Pin
JoeRip18-Nov-07 21:39
JoeRip18-Nov-07 21:39 
GeneralRe: About InvalidOperationEception [modified] Pin
jason_mf18-Nov-07 22:16
jason_mf18-Nov-07 22:16 
GeneralRe: About InvalidOperationEception Pin
JoeRip18-Nov-07 22:45
JoeRip18-Nov-07 22:45 
I suspect your exception isn't caused by this section of code.

Is there a chance that code in your main form is referencing a control on the form that just closed, or calling a method that does?

I don't know how useful it is, but:

You are getting this Exception all the way up at Application.Run because it is unhandled all the way up. Take a look at the StackTrace and see where it's originating. Look at the Exception.InnerException (if there is one) to see if you can tell where things are happening.

Try putting an Exception Handler for this Exception lower in your code, closer to where you think this is occuring. Another thing to try is putting a check for "this.InvokeRequired" in your event handlers - you can get the InvalidOperationException if you have threads accessing controls from other threads, and this will tell you if that is happening.

Look at Invoke and BeginInvoke in MSDN, and take a look at InvalidOperationException there also. Sorry I can't be of more help.
Questionquestion concerning windows service Pin
stephan_00718-Nov-07 21:05
stephan_00718-Nov-07 21:05 
AnswerRe: question concerning windows service [modified] Pin
Jimmanuel19-Nov-07 2:07
Jimmanuel19-Nov-07 2:07 
AnswerRe: question concerning windows service Pin
PIEBALDconsult19-Nov-07 4:32
mvePIEBALDconsult19-Nov-07 4:32 
QuestionChanging Column Balue Before Insert in Data Grid Pin
Aftab Sindhi18-Nov-07 20:55
Aftab Sindhi18-Nov-07 20:55 
QuestionGraphical Grid in c#.net Pin
sindhutiwari18-Nov-07 20:47
sindhutiwari18-Nov-07 20:47 
QuestionHow to refresh child picturebox when moving (with mouse) on parent picturebox. Pin
Chintan.Desai18-Nov-07 20:13
Chintan.Desai18-Nov-07 20:13 
QuestionBarcode reader events handillinh Pin
shahid hameed18-Nov-07 20:04
shahid hameed18-Nov-07 20:04 
AnswerRe: Barcode reader events handillinh Pin
MickCurley18-Nov-07 22:47
MickCurley18-Nov-07 22:47 
QuestionString Manipulation Pin
Programm3r18-Nov-07 20:02
Programm3r18-Nov-07 20:02 
AnswerRe: String Manipulation Pin
Guffa18-Nov-07 20:58
Guffa18-Nov-07 20:58 
GeneralRe: String Manipulation Pin
Programm3r18-Nov-07 21:12
Programm3r18-Nov-07 21:12 
AnswerRe: String Manipulation Pin
Guffa19-Nov-07 0:16
Guffa19-Nov-07 0:16 
GeneralRe: String Manipulation Pin
Programm3r19-Nov-07 0:41
Programm3r19-Nov-07 0:41 
GeneralRe: String Manipulation Pin
mabo4219-Nov-07 0:53
mabo4219-Nov-07 0:53 
GeneralRe: String Manipulation Pin
Programm3r19-Nov-07 0:56
Programm3r19-Nov-07 0:56 
GeneralRe: String Manipulation Pin
mabo4219-Nov-07 1:09
mabo4219-Nov-07 1:09 
GeneralRe: String Manipulation Pin
mabo4219-Nov-07 1:22
mabo4219-Nov-07 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.