Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: strange behaviour of SendMessage() Pin
Dave Kreskowiak28-Jan-05 12:40
mveDave Kreskowiak28-Jan-05 12:40 
GeneralRe: strange behaviour of SendMessage() Pin
Adnan Siddiqi28-Jan-05 17:32
Adnan Siddiqi28-Jan-05 17:32 
GeneralRe: strange behaviour of SendMessage() Pin
Dave Kreskowiak28-Jan-05 18:11
mveDave Kreskowiak28-Jan-05 18:11 
GeneralRe: strange behaviour of SendMessage() Pin
Adnan Siddiqi28-Jan-05 19:40
Adnan Siddiqi28-Jan-05 19:40 
GeneralRe: strange behaviour of SendMessage() Pin
Dave Kreskowiak29-Jan-05 4:32
mveDave Kreskowiak29-Jan-05 4:32 
GeneralDo events?? (C# Newbi) Pin
Dwayner7928-Jan-05 7:13
Dwayner7928-Jan-05 7:13 
GeneralRe: Do events?? (C# Newbi) Pin
Dave Kreskowiak28-Jan-05 7:37
mveDave Kreskowiak28-Jan-05 7:37 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 9:01
Dwayner7928-Jan-05 9:01 
I understand the difference, I do not want to stop everything in the Parent, I want to pause the code...

Here is some more clarity...

If I comment out the call to the child form, the parent forms loads and sits there. This seems correct.

If I call the Child, and set a breakpoint, and F11 through the code, everything works fine. The child is called, and the code in the child loads fine.

If I Run the code without the breakpoint, the following error occures:

"An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.

Additional information: Object reference not set to an instance of an object."

My thoughts on this is that the code is failing because the parent is leaving the function that called the child.

The question is should I showdialog and lose the ability to use the parent window functions, Should I do a do While type statement, or is there another way to handle this kind of situation?

Thanks for the advice.

Edit: You cannot run a showdialog on a child form. So there has to be something that can "pause" the Parent.


GeneralRe: Do events?? (C# Newbi) Pin
Carl Mercier28-Jan-05 9:40
Carl Mercier28-Jan-05 9:40 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 9:43
Dwayner7928-Jan-05 9:43 
GeneralRe: Do events?? (C# Newbi) Pin
Skynyrd28-Jan-05 9:54
Skynyrd28-Jan-05 9:54 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 10:26
Dwayner7928-Jan-05 10:26 
GeneralRe: Do events?? (C# Newbi) Pin
Skynyrd28-Jan-05 11:32
Skynyrd28-Jan-05 11:32 
GeneralRe: Do events?? (C# Newbi) Pin
therealmccoy28-Jan-05 17:56
therealmccoy28-Jan-05 17:56 
GeneralRe: Do events?? (C# Newbi) Pin
Dave Kreskowiak28-Jan-05 10:18
mveDave Kreskowiak28-Jan-05 10:18 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 10:34
Dwayner7928-Jan-05 10:34 
Generalpassing data from one form to another Pin
steve_rm28-Jan-05 4:06
steve_rm28-Jan-05 4:06 
GeneralRe: passing data from one form to another Pin
Bahadir Cambel28-Jan-05 11:45
Bahadir Cambel28-Jan-05 11:45 
GeneralHelp On Serialization Pin
fmarcos28-Jan-05 2:05
fmarcos28-Jan-05 2:05 
GeneralCustomize Control Pin
jzb28-Jan-05 0:04
jzb28-Jan-05 0:04 
GeneralRe: Customize Control Pin
spif200128-Jan-05 1:33
spif200128-Jan-05 1:33 
GeneralSubstring's problem Pin
jzb27-Jan-05 23:50
jzb27-Jan-05 23:50 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 0:01
mav.northwind28-Jan-05 0:01 
GeneralRe: Substring's problem Pin
jzb28-Jan-05 0:15
jzb28-Jan-05 0:15 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 0:27
mav.northwind28-Jan-05 0:27 

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.