Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionNot able to read the value from App.config file Pin
kumar sudhir11-Sep-06 0:53
kumar sudhir11-Sep-06 0:53 
AnswerRe: Not able to read the value from App.config file Pin
Bhupi Bhai1-Sep-06 1:57
Bhupi Bhai1-Sep-06 1:57 
AnswerRe: Not able to read the value from App.config file Pin
Not Active1-Sep-06 2:23
mentorNot Active1-Sep-06 2:23 
QuestionSort DataGridView Column in Numeric Format Pin
Andy Rama1-Sep-06 0:49
Andy Rama1-Sep-06 0:49 
QuestionNot able to read the value from App.config file Pin
kumar sudhir11-Sep-06 0:49
kumar sudhir11-Sep-06 0:49 
QuestionWin32 GetFocus() Alternative? Pin
wbjohnson31-Aug-06 23:50
wbjohnson31-Aug-06 23:50 
QuestionMessageBox close button ? help please ... Pin
cmpeng3431-Aug-06 23:38
cmpeng3431-Aug-06 23:38 
AnswerRe: MessageBox close button ? help please ... Pin
User 66581-Sep-06 1:40
User 66581-Sep-06 1:40 
Use MessageBoxButtons.YesNoCancel

If you only use YesNo, then clicking the X-Button is not a valid option, that's why it is disabled. Adding the "Cancel" property is the correct way to do it.

But for a confirmation to close the app I'd use OkCancel, because "No" and "Cancel" have virtually the same meaning in this case, yet the MessageBox has two different buttons. Kinda confusing.

regards

modified 12-Sep-18 21:01pm.

QuestionButton look&feel Pin
JacquesDP31-Aug-06 23:08
JacquesDP31-Aug-06 23:08 
AnswerRe: Button look&feel Pin
Stefan Troschuetz31-Aug-06 23:20
Stefan Troschuetz31-Aug-06 23:20 
AnswerRe: Button look&feel Pin
Andrei Ungureanu1-Sep-06 1:53
Andrei Ungureanu1-Sep-06 1:53 
GeneralRe: Button look&feel Pin
JacquesDP1-Sep-06 2:11
JacquesDP1-Sep-06 2:11 
QuestionThe C5 Generic Collection Library Pin
Kevin McFarlane31-Aug-06 23:05
Kevin McFarlane31-Aug-06 23:05 
AnswerRe: The C5 Generic Collection Library Pin
leppie1-Sep-06 0:56
leppie1-Sep-06 0:56 
QuestionDeclaring control events in XML file Pin
mhadamji31-Aug-06 22:42
mhadamji31-Aug-06 22:42 
AnswerRe: Declaring control events in XML file Pin
WillemM31-Aug-06 23:11
WillemM31-Aug-06 23:11 
GeneralRe: Declaring control events in XML file Pin
mhadamji1-Sep-06 3:12
mhadamji1-Sep-06 3:12 
QuestionHow to capture the data entered by the user Pin
King Shez31-Aug-06 22:11
King Shez31-Aug-06 22:11 
AnswerRe: How to capture the data entered by the user Pin
CWIZO31-Aug-06 22:47
CWIZO31-Aug-06 22:47 
GeneralRe: How to capture the data entered by the user Pin
King Shez1-Sep-06 2:06
King Shez1-Sep-06 2:06 
QuestionCalculation Problems Pin
Gavin Roberts31-Aug-06 22:05
Gavin Roberts31-Aug-06 22:05 
AnswerRe: Calculation Problems Pin
Marek Grzenkowicz31-Aug-06 22:11
Marek Grzenkowicz31-Aug-06 22:11 
GeneralRe: Calculation Problems Pin
Gavin Roberts31-Aug-06 23:14
Gavin Roberts31-Aug-06 23:14 
QuestionHow to run a url [modified] Pin
Support12331-Aug-06 21:18
Support12331-Aug-06 21:18 
QuestionRe: How to run a url Pin
Support12331-Aug-06 22:44
Support12331-Aug-06 22:44 

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.