Click here to Skip to main content
16,004,647 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow Windows works... Pin
profoundwhispers7-Jan-04 7:39
profoundwhispers7-Jan-04 7:39 
AnswerRe: How Windows works... Pin
Colin Angus Mackay10-Jan-04 16:59
Colin Angus Mackay10-Jan-04 16:59 
Generalsearch trough a TreeView for a TreeNode with matching tag Pin
Kalthoff7-Jan-04 5:39
Kalthoff7-Jan-04 5:39 
GeneralRe: search trough a TreeView for a TreeNode with matching tag Pin
Charlie Williams7-Jan-04 11:30
Charlie Williams7-Jan-04 11:30 
Generalmms sending Pin
Anonymous6-Jan-04 18:17
Anonymous6-Jan-04 18:17 
GeneralDialog Issues in .NET CF PocketPC 2003 Pin
Cowwolfe6-Jan-04 2:48
Cowwolfe6-Jan-04 2:48 
GeneralRe: Dialog Issues in .NET CF PocketPC 2003 Pin
Colin Angus Mackay6-Jan-04 4:44
Colin Angus Mackay6-Jan-04 4:44 
GeneralUnhandled exceptions in winform custom control Pin
smartinz5-Jan-04 1:51
smartinz5-Jan-04 1:51 
Hi all,
I'm having a problem with unhandled exceptions in a winform user control.
In the main.cs I have:

[STAThread]
static void Main()
{
System.Threading.Thread.CurrentThread.ApartmentState = System.Threading.ApartmentState.STA;
AWSWndExceptionHandler eh = new AWSWndExceptionHandler();
Application.ThreadException += new ThreadExceptionEventHandler(eh.OnHandleException);
Application.Run(new frmMain());
}

where 'AWSWndExceptionHandler' is my internal class for exception handling.

Then I includ in the form a custom control 'GridCalendar' having a dragdrop functionality. Everything works fine a part from unhandled exceptions thrown in GridCalendar_DragDrop and GridCalendar_DragOver events...they get 'eaten' somewhere and I don't see them...

For example the if I have following DragDrop event:

private void GridCalendar_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
throw new ApplicationException("test drag-drop"); //testexc
}

when I drag and drop an item on the control, the expection 'testexc' is thrown but not bubbled up to the stack, so I don't get any error...the item is not dropped on the control, the form does not crash but the user doesn't know what's wrong...

Any idea what I'm doing wrong?

thanks




Stefano
GeneralProduct Licensing Pin
RichLee5-Jan-04 0:03
RichLee5-Jan-04 0:03 
Generalplease help me,my project......... Pin
Ahmed Gaser3-Jan-04 23:15
Ahmed Gaser3-Jan-04 23:15 
Questionmust clicking a control inside a scrollableControl bring it into view? Pin
misterbear3-Jan-04 1:41
misterbear3-Jan-04 1:41 
QuestionGrid "OnDrawCell" Event ? Pin
guim72-Jan-04 3:31
guim72-Jan-04 3:31 
AnswerRe: Grid "OnDrawCell" Event ? Pin
Marcie Jones7-Jan-04 9:38
Marcie Jones7-Jan-04 9:38 
GeneralRe: Grid "OnDrawCell" Event ? Pin
guim78-Jan-04 5:31
guim78-Jan-04 5:31 
GeneralRe: Grid "OnDrawCell" Event ? Pin
Marcie Jones8-Jan-04 5:37
Marcie Jones8-Jan-04 5:37 
GeneralRe: Grid "OnDrawCell" Event ? Pin
guim78-Jan-04 22:01
guim78-Jan-04 22:01 
QuestionAccessing memory usage for current Application (or AppDomain)? Pin
Jon Rista29-Dec-03 16:53
Jon Rista29-Dec-03 16:53 
AnswerRe: Accessing memory usage for current Application (or AppDomain)? Pin
je_gonzalez29-Dec-03 17:31
je_gonzalez29-Dec-03 17:31 
GeneralRe: Accessing memory usage for current Application (or AppDomain)? Pin
Jon Rista29-Dec-03 17:58
Jon Rista29-Dec-03 17:58 
GeneralRe: Accessing memory usage for current Application (or AppDomain)? Pin
je_gonzalez29-Dec-03 18:12
je_gonzalez29-Dec-03 18:12 
GeneralRe: Accessing memory usage for current Application (or AppDomain)? Pin
Jon Rista29-Dec-03 20:32
Jon Rista29-Dec-03 20:32 
QuestionIs it worth getting Visual C#? Pin
Gomac27-Dec-03 6:45
Gomac27-Dec-03 6:45 
AnswerRe: Is it worth getting Visual C#? Pin
Colin Angus Mackay27-Dec-03 7:11
Colin Angus Mackay27-Dec-03 7:11 
GeneralRe: Is it worth getting Visual C#? Pin
Gomac27-Dec-03 7:29
Gomac27-Dec-03 7:29 
AnswerRe: Is it worth getting Visual C#? Pin
SiddharthAtw29-Dec-03 22:33
SiddharthAtw29-Dec-03 22:33 

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.