Click here to Skip to main content
15,889,724 members
Home / Discussions / C#
   

C#

 
AnswerRe: DialogResult Question Pin
RaviRanjanKr28-Nov-10 5:04
professionalRaviRanjanKr28-Nov-10 5:04 
AnswerRe: DialogResult Question Pin
Luc Pattyn28-Nov-10 5:46
sitebuilderLuc Pattyn28-Nov-10 5:46 
GeneralRe: DialogResult Question Pin
Luc Pattyn28-Nov-10 12:34
sitebuilderLuc Pattyn28-Nov-10 12:34 
AnswerRe: DialogResult Question Pin
Dr.Walt Fair, PE28-Nov-10 7:19
professionalDr.Walt Fair, PE28-Nov-10 7:19 
AnswerRe: DialogResult Question [modified] Pin
Luc Pattyn28-Nov-10 7:25
sitebuilderLuc Pattyn28-Nov-10 7:25 
AnswerRe: DialogResult Question Pin
Dave Kreskowiak28-Nov-10 11:39
mveDave Kreskowiak28-Nov-10 11:39 
GeneralRe: DialogResult Question Pin
Luc Pattyn28-Nov-10 12:27
sitebuilderLuc Pattyn28-Nov-10 12:27 
AnswerRe: DialogResult Question Pin
Luc Pattyn28-Nov-10 12:29
sitebuilderLuc Pattyn28-Nov-10 12:29 
Sorry, I misread your question. My current answer is it closes by itself.

If the question is: When a dialog, while being shown, gets its DialogResult set, do I still need to close it explicitly?
Then I'd say NO.

Both MSDN and my little experiment indicate it closes automatically as soon as some value gets assigned.
There seems to be one exception: the value DialogResult.None does not close the dialog. This is not mentioned on the MSDN page on Form.DialogResult property, however it is somewhat mentioned on the page about DialogResult enumeration...

Smile | :) <
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


Questionserver DB Pin
om_metab27-Nov-10 19:10
om_metab27-Nov-10 19:10 
AnswerRe: server DB Pin
Luc Pattyn27-Nov-10 22:21
sitebuilderLuc Pattyn27-Nov-10 22:21 
AnswerRe: server DB Pin
Eddy Vluggen27-Nov-10 22:30
professionalEddy Vluggen27-Nov-10 22:30 
AnswerRe: server DB Pin
PIEBALDconsult28-Nov-10 3:59
mvePIEBALDconsult28-Nov-10 3:59 
AnswerRe: server DB Pin
RaviRanjanKr18-Dec-10 21:25
professionalRaviRanjanKr18-Dec-10 21:25 
GeneralRe: server DB Pin
om_metab22-Dec-10 3:11
om_metab22-Dec-10 3:11 
QuestionNetwork Sqlserver ConnectionString Pin
navidsoft27-Nov-10 18:16
professionalnavidsoft27-Nov-10 18:16 
AnswerRe: Network Sqlserver ConnectionString Pin
Roger Wright27-Nov-10 18:41
professionalRoger Wright27-Nov-10 18:41 
AnswerRe: Network Sqlserver ConnectionString Pin
Luc Pattyn27-Nov-10 21:46
sitebuilderLuc Pattyn27-Nov-10 21:46 
GeneralRe: Network Sqlserver ConnectionString Pin
navidsoft28-Nov-10 2:19
professionalnavidsoft28-Nov-10 2:19 
AnswerRe: Network Sqlserver ConnectionString Pin
PIEBALDconsult28-Nov-10 4:01
mvePIEBALDconsult28-Nov-10 4:01 
AnswerRe: Network Sqlserver ConnectionString Pin
Dave Kreskowiak28-Nov-10 11:42
mveDave Kreskowiak28-Nov-10 11:42 
QuestionAssigning a value to an array property via reflection Pin
Lutosław27-Nov-10 12:21
Lutosław27-Nov-10 12:21 
AnswerRe: Assigning a value to an array property via reflection Pin
Lutosław27-Nov-10 13:01
Lutosław27-Nov-10 13:01 
GeneralRe: Assigning a value to an array property via reflection Pin
RaviRanjanKr18-Dec-10 21:27
professionalRaviRanjanKr18-Dec-10 21:27 
Questiontabcontrol with contextMenu Pin
Erdinc2727-Nov-10 1:12
Erdinc2727-Nov-10 1:12 
AnswerRe: tabcontrol with contextMenu Pin
Erdinc2727-Nov-10 2:36
Erdinc2727-Nov-10 2: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.