Click here to Skip to main content
15,889,116 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionUnit Testing Pin
Colin Angus Mackay20-Feb-07 0:23
Colin Angus Mackay20-Feb-07 0:23 
AnswerRe: Unit Testing Pin
S. Senthil Kumar25-Feb-07 11:17
S. Senthil Kumar25-Feb-07 11:17 
GeneralRe: Unit Testing Pin
Colin Angus Mackay2-Mar-07 3:33
Colin Angus Mackay2-Mar-07 3:33 
QuestionHelp needed in setting report programatically.. Pin
bugsome20-Feb-07 0:11
bugsome20-Feb-07 0:11 
QuestionAutoescape text Pin
Ray Cassick19-Feb-07 19:44
Ray Cassick19-Feb-07 19:44 
AnswerRe: Autoescape text Pin
Heath Stewart20-Feb-07 4:51
protectorHeath Stewart20-Feb-07 4:51 
AnswerRe: Autoescape text Pin
Pete O'Hanlon20-Feb-07 5:01
mvePete O'Hanlon20-Feb-07 5:01 
QuestionProblem with handling MDI child closing Pin
CPP_Student19-Feb-07 17:24
CPP_Student19-Feb-07 17:24 
I have a problem with a Windows Forms project I am toying with. I am creating a quicken like program. The main window creates a MDI child for each account (checking, credit card, and broker). I cannot figure out how to handle the close button. I want the form to just hide itself and remain in the main menu item that I dedicated to keeping the names of the children, so that the user can reselect and open the form again. However, this doesn't work:

private void CheckingAccountForm_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing)
{
this.Visible = false;
e.Cancel = true;
}
}

The window is removed from the menu, and I currently have no way to bring it back.

Ideally I would like to remove the close button from the header of the form but leave the other two. I can't see any way to get rid of that button without losing the others.

I may just get rid of the header and add two custom buttons for the other two functions (minimize and full/screen toggle).

Any ideas?

Another pesky problem is that if I click the close button on the main form, it closes the children but stays open, and I gotta click the close buttong again.

Thx.


AnswerRe: Problem with handling MDI child closing Pin
tgrt20-Feb-07 3:12
tgrt20-Feb-07 3:12 
GeneralRe: Problem with handling MDI child closing Pin
CPP_Student20-Feb-07 9:24
CPP_Student20-Feb-07 9:24 
QuestionUsing Reflection to get the name of a function parameter. Pin
howardjr19-Feb-07 15:31
howardjr19-Feb-07 15:31 
AnswerRe: Using Reflection to get the name of a function parameter. Pin
Heath Stewart20-Feb-07 4:58
protectorHeath Stewart20-Feb-07 4:58 
GeneralRe: Using Reflection to get the name of a function parameter. Pin
howardjr21-Feb-07 9:57
howardjr21-Feb-07 9:57 
Questionupdating to framework 3.0 Pin
Darren Sim19-Feb-07 0:38
Darren Sim19-Feb-07 0:38 
AnswerRe: updating to framework 3.0 Pin
Heath Stewart19-Feb-07 7:02
protectorHeath Stewart19-Feb-07 7:02 
GeneralRe: updating to framework 3.0 Pin
Dave Kreskowiak19-Feb-07 10:15
mveDave Kreskowiak19-Feb-07 10:15 
GeneralRe: updating to framework 3.0 Pin
Heath Stewart19-Feb-07 13:13
protectorHeath Stewart19-Feb-07 13:13 
GeneralRe: updating to framework 3.0 Pin
Dave Kreskowiak19-Feb-07 13:19
mveDave Kreskowiak19-Feb-07 13:19 
GeneralRe: updating to framework 3.0 Pin
Kevin McFarlane20-Feb-07 2:24
Kevin McFarlane20-Feb-07 2:24 
GeneralRe: updating to framework 3.0 Pin
Heath Stewart20-Feb-07 4:27
protectorHeath Stewart20-Feb-07 4:27 
GeneralRe: updating to framework 3.0 Pin
Kevin McFarlane20-Feb-07 8:44
Kevin McFarlane20-Feb-07 8:44 
AnswerRe: updating to framework 3.0 Pin
Thomas Stockwell19-Feb-07 7:05
professionalThomas Stockwell19-Feb-07 7:05 
GeneralRe: updating to framework 3.0 Pin
Darren Sim19-Feb-07 22:31
Darren Sim19-Feb-07 22:31 
QuestionMaking things secure enough to be cracked !!! Pin
fulbright18-Feb-07 19:17
fulbright18-Feb-07 19:17 
AnswerRe: Making things secure enough to be cracked !!! Pin
Dave Kreskowiak19-Feb-07 9:36
mveDave Kreskowiak19-Feb-07 9:36 

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.