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

C#

 
GeneralRe: DataGrid---UpdateCommand... problem... Pin
Snowblind379-Jul-05 7:30
Snowblind379-Jul-05 7:30 
GeneralList definition in C# Pin
zaboboa8-Jul-05 9:07
zaboboa8-Jul-05 9:07 
GeneralRe: List definition in C# Pin
Stefan Troschuetz8-Jul-05 9:38
Stefan Troschuetz8-Jul-05 9:38 
GeneralRe: List definition in C# Pin
zaboboa8-Jul-05 9:41
zaboboa8-Jul-05 9:41 
GeneralRe: List definition in C# Pin
Stefan Troschuetz8-Jul-05 10:03
Stefan Troschuetz8-Jul-05 10:03 
GeneralRe: List definition in C# Pin
Snowblind379-Jul-05 8:01
Snowblind379-Jul-05 8:01 
GeneralSearch & replacing values in Xml Pin
breen258-Jul-05 9:05
breen258-Jul-05 9:05 
GeneralMDI child can't close itself Pin
Luis Alonso Ramos8-Jul-05 9:00
Luis Alonso Ramos8-Jul-05 9:00 
Hello,

I'm trying to close a MDI child (by calling this.Close()) is trying in the Validated event handler for one of its controls, but it refuses to close.

I've checked the OnClosing handler, and when called, e.Cancel is always true. I tried setting it to false, but then I get a NullReferenceException (not in my code, my debugger just pops up pointing at the last line of code in my Main).

I could just hide it, but I would like it to be closed later, so it's not taking up memory unnecessarily.

It seems that when I try to close it, it's in some process that has to finish, and that's the reason of the NullReferenceException.

Could anyone shed some light?

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: MDI child can't close itself Pin
Snowblind379-Jul-05 8:24
Snowblind379-Jul-05 8:24 
GeneralRe: MDI child can't close itself Pin
Luis Alonso Ramos9-Jul-05 9:54
Luis Alonso Ramos9-Jul-05 9:54 
GeneralRe: MDI child can't close itself Pin
Snowblind379-Jul-05 11:20
Snowblind379-Jul-05 11:20 
Questionbest way to connect to a database? Pin
Jassim Rahma8-Jul-05 7:32
Jassim Rahma8-Jul-05 7:32 
AnswerRe: best way to connect to a database? Pin
breen258-Jul-05 8:47
breen258-Jul-05 8:47 
GeneralSimple Instance Error Msg Pin
zaboboa8-Jul-05 5:32
zaboboa8-Jul-05 5:32 
GeneralRe: Simple Instance Error Msg Pin
Dave Kreskowiak8-Jul-05 5:42
mveDave Kreskowiak8-Jul-05 5:42 
GeneralRe: Simple Instance Error Msg Pin
Stefan Troschuetz8-Jul-05 5:51
Stefan Troschuetz8-Jul-05 5:51 
GeneralRe: Simple Instance Error Msg Pin
zaboboa8-Jul-05 6:14
zaboboa8-Jul-05 6:14 
GeneralRe: Simple Instance Error Msg Pin
Stefan Troschuetz8-Jul-05 9:40
Stefan Troschuetz8-Jul-05 9:40 
GeneralObject Inheritance Pin
heistgonewrong8-Jul-05 4:48
heistgonewrong8-Jul-05 4:48 
GeneralRe: Object Inheritance Pin
therealmccoy8-Jul-05 5:33
therealmccoy8-Jul-05 5:33 
GeneralRe: Object Inheritance Pin
S. Senthil Kumar8-Jul-05 5:46
S. Senthil Kumar8-Jul-05 5:46 
GeneralOut of Memory when I Drawing Pin
Alex Cutovoi8-Jul-05 4:21
Alex Cutovoi8-Jul-05 4:21 
GeneralRe: Out of Memory when I Drawing Pin
leppie8-Jul-05 4:24
leppie8-Jul-05 4:24 
GeneralRe: Out of Memory when I Drawing Pin
Alex Cutovoi8-Jul-05 6:42
Alex Cutovoi8-Jul-05 6:42 
GeneralRe: Out of Memory when I Drawing Pin
leppie8-Jul-05 6:50
leppie8-Jul-05 6:50 

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.