Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
Questionmake a new object in an event! Pin
pcsience6-May-09 4:44
pcsience6-May-09 4:44 
QuestionRe: make a new object in an event! Pin
OriginalGriff6-May-09 4:53
mveOriginalGriff6-May-09 4:53 
QuestionRe: make a new object in an event! Pin
pcsience6-May-09 5:37
pcsience6-May-09 5:37 
AnswerRe: make a new object in an event! Pin
musefan6-May-09 5:49
musefan6-May-09 5:49 
QuestionRe: make a new object in an event! Pin
pcsience6-May-09 7:55
pcsience6-May-09 7:55 
AnswerRe: make a new object in an event! Pin
Henry Minute6-May-09 9:06
Henry Minute6-May-09 9:06 
QuestionRe: make a new object in an event! Pin
pcsience6-May-09 11:38
pcsience6-May-09 11:38 
AnswerRe: make a new object in an event! Pin
Henry Minute6-May-09 12:01
Henry Minute6-May-09 12:01 
Closing the childform disposes it. The point of an MDI interface is that it allows you to have many child windows open, which is why I suggested using ActiveMDIChild.

If you want to use your toolTest_Click you must either test that ActiveMDIChild is not null and return if it is, or you must add myTest = new ChildTest() to the method. The problem with the last option, is that you will end up with lots of myTest forms open, just to test your methods. Alternatively don't close the first instance of ChildTest().

This is why I suggested that you read the article I gave the link for. Also the MDI Walkthroughs on MSDN are not bad, such as this one[^].

If you study either, or both of these, you will get a better understanding, because it is obvious that you are misunderstanding something about Windows Forms Programming in general and MDI in particular.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: make a new object in an event! Pin
pcsience9-May-09 2:29
pcsience9-May-09 2:29 
QuestionCompositeDataBoundControl designer crashes VS2008 Pin
Andre Vianna6-May-09 4:40
Andre Vianna6-May-09 4:40 
Questionproblem in C# Pin
kakarman6-May-09 4:26
kakarman6-May-09 4:26 
AnswerRe: problem in C# Pin
musefan6-May-09 4:29
musefan6-May-09 4:29 
AnswerRe: problem in C# Pin
led mike6-May-09 4:37
led mike6-May-09 4:37 
AnswerRe: problem in C# Pin
Luc Pattyn6-May-09 4:38
sitebuilderLuc Pattyn6-May-09 4:38 
QuestionCrystal report binding Pin
KIDYA6-May-09 3:31
KIDYA6-May-09 3:31 
QuestionHTK Pin
dileeparuwan6-May-09 3:25
dileeparuwan6-May-09 3:25 
QuestionUsing Cell Phone as a PC Microphone in using in the hand 32feet Pin
Ami Vaknin6-May-09 3:21
Ami Vaknin6-May-09 3:21 
AnswerRe: Using Cell Phone as a PC Microphone in using in the hand 32feet Pin
Henry Minute6-May-09 6:21
Henry Minute6-May-09 6:21 
GeneralRe: Using Cell Phone as a PC Microphone in using in the hand 32feet Pin
Ami Vaknin6-May-09 11:16
Ami Vaknin6-May-09 11:16 
QuestionOut of Memory exception.. Pin
Jacob Dixon6-May-09 3:16
Jacob Dixon6-May-09 3:16 
AnswerRe: Out of Memory exception.. Pin
S. Senthil Kumar6-May-09 9:09
S. Senthil Kumar6-May-09 9:09 
GeneralRe: Out of Memory exception.. Pin
Jacob Dixon6-May-09 10:18
Jacob Dixon6-May-09 10:18 
GeneralRe: Out of Memory exception.. Pin
S. Senthil Kumar6-May-09 10:25
S. Senthil Kumar6-May-09 10:25 
QuestionReading large xls files in C# Pin
aastudent6-May-09 3:08
aastudent6-May-09 3:08 
AnswerRe: Reading large xls files in C# Pin
foluis26-Mar-10 11:16
foluis26-Mar-10 11:16 

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.