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

C#

 
AnswerRe: List Shows Different Values entered in the textbox Pin
Keith Barrow28-Nov-10 22:02
professionalKeith Barrow28-Nov-10 22:02 
QuestionWant to write a Updater exe Pin
Anil Kumar.Arvapalli28-Nov-10 18:40
Anil Kumar.Arvapalli28-Nov-10 18:40 
AnswerRe: Want to write a Updater exe Pin
RaviRanjanKr28-Nov-10 19:36
professionalRaviRanjanKr28-Nov-10 19:36 
AnswerRe: Want to write a Updater exe Pin
Abhinav S28-Nov-10 20:09
Abhinav S28-Nov-10 20:09 
QuestionHow to create a DXF file? Pin
westanbul28-Nov-10 4:51
westanbul28-Nov-10 4:51 
AnswerRe: How to create a DXF file? Pin
PIEBALDconsult28-Nov-10 5:02
mvePIEBALDconsult28-Nov-10 5:02 
AnswerRe: How to create a DXF file? Pin
Luc Pattyn28-Nov-10 5:45
sitebuilderLuc Pattyn28-Nov-10 5:45 
AnswerRe: How to create a DXF file? Pin
Abhinav S28-Nov-10 5:49
Abhinav S28-Nov-10 5:49 
AnswerRe: How to create a DXF file? Pin
westanbul28-Nov-10 8:40
westanbul28-Nov-10 8:40 
GeneralRe: How to create a DXF file? Pin
Richard MacCutchan28-Nov-10 10:20
mveRichard MacCutchan28-Nov-10 10:20 
AnswerRe: How to create a DXF file? Pin
Pete O'Hanlon28-Nov-10 10:35
mvePete O'Hanlon28-Nov-10 10:35 
QuestionDialogResult Question Pin
Jassim Rahma28-Nov-10 2:57
Jassim Rahma28-Nov-10 2:57 
AnswerRe: DialogResult Question Pin
Keith Barrow28-Nov-10 3:12
professionalKeith Barrow28-Nov-10 3:12 
AnswerRe: DialogResult Question Pin
PIEBALDconsult28-Nov-10 3:56
mvePIEBALDconsult28-Nov-10 3:56 
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 
Walt Fair, Jr. wrote:
before it closes, no one knows what the result will be.


IMO that is correct but not as simple as your statement suggests: the dialog's code could set its DialogResult property explicitly before it closes, even outside a button click handler; however being a Control, it cannot be accessed by any thread other than the one that created the dialog and is currently showing it, and that thread is just waiting for it to close, so there is no way to read DialogResult unless the dialog gets closed first.

[EDIT] I'm afraid the above no longer is relevant; the dialog closes as soon as its DialogResult gets set, see my latest reply below. [/EDIT]

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.


modified on Sunday, November 28, 2010 6:37 PM

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 
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 

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.