Click here to Skip to main content
16,018,442 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHow to customize the WinPE with Internet Explorer Pin
Vamsee_Krishna20-Feb-07 4:11
Vamsee_Krishna20-Feb-07 4:11 
QuestionHow to work with ToggleButton Pin
pashitech19-Feb-07 17:41
pashitech19-Feb-07 17:41 
QuestionRe: How to work with ToggleButton Pin
Newbie0020-Feb-07 0:27
Newbie0020-Feb-07 0:27 
AnswerRe: How to work with ToggleButton Pin
Bulky Fellow20-Feb-07 20:49
Bulky Fellow20-Feb-07 20:49 
GeneralRe: How to work with ToggleButton Pin
Newbie0021-Feb-07 0:58
Newbie0021-Feb-07 0:58 
QuestionVSTO error handling Pin
FlorentBzh19-Feb-07 5:48
FlorentBzh19-Feb-07 5:48 
QuestionKeeping MDI children alive Pin
CPP_Student18-Feb-07 23:18
CPP_Student18-Feb-07 23:18 
AnswerRe: Keeping MDI children alive Pin
Newbie0019-Feb-07 5:05
Newbie0019-Feb-07 5:05 
I don't know why You are defining The FormClosing method..
If You are using VC++ 2005 and you've placed a button on the form, that you want to close, all you have to do is setting up the Behavior property named DialogResult (you can choose the proper result's value from the checkbox placed on the right of the DialogResult property)..
If user clicks the button, the form closes. The user can open it from main/parent form's menu again.

In order to handle button's click you have to define

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {} method, which you can choose with the button double clicking (in the design form) or with choosing it from the button's events. In abovementioned method's body you can also write code, like this : this->Close(); which will cause closing the form too (the form wich is the owner of the button).
GeneralRe: Keeping MDI children alive Pin
CPP_Student19-Feb-07 17:20
CPP_Student19-Feb-07 17:20 
QuestionEquivalent to WM_HOTKEY? Pin
LionAM18-Feb-07 1:34
LionAM18-Feb-07 1:34 
AnswerRe: Equivalent to WM_HOTKEY? Pin
Dave Kreskowiak18-Feb-07 11:54
mveDave Kreskowiak18-Feb-07 11:54 
GeneralRe: Equivalent to WM_HOTKEY? Pin
LionAM18-Feb-07 20:33
LionAM18-Feb-07 20:33 
QuestionSo, is this forum language agnostic? Pin
Marc Clifton16-Feb-07 13:45
mvaMarc Clifton16-Feb-07 13:45 
AnswerRe: So, is this forum language agnostic? Pin
User 171649216-Feb-07 14:22
professionalUser 171649216-Feb-07 14:22 
GeneralRe: So, is this forum language agnostic? Pin
Scott Dorman16-Feb-07 19:17
professionalScott Dorman16-Feb-07 19:17 
AnswerRe: So, is this forum language agnostic? Pin
Captain See Sharp16-Feb-07 15:39
Captain See Sharp16-Feb-07 15:39 
AnswerRe: So, is this forum language agnostic? Pin
Christian Graus18-Feb-07 12:34
protectorChristian Graus18-Feb-07 12:34 
JokeOT Pin
Michael Dunn18-Feb-07 17:50
sitebuilderMichael Dunn18-Feb-07 17:50 
GeneralRe: OT Pin
Christian Graus18-Feb-07 20:45
protectorChristian Graus18-Feb-07 20:45 
GeneralRe: OT Pin
Marc Clifton19-Feb-07 1:45
mvaMarc Clifton19-Feb-07 1:45 
QuestionAnd another new forum! Pin
Colin Angus Mackay16-Feb-07 11:20
Colin Angus Mackay16-Feb-07 11:20 
AnswerRe: And another new forum! Pin
Chris Maunder16-Feb-07 11:26
cofounderChris Maunder16-Feb-07 11:26 
AnswerRe: And another new forum! Pin
David Cunningham16-Feb-07 13:29
cofounderDavid Cunningham16-Feb-07 13:29 
AnswerRe: And another new forum! Pin
Hamid Taebi18-Feb-07 5:07
professionalHamid Taebi18-Feb-07 5:07 

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.