PC Review


Reply
Thread Tools Rate Thread

DialogResult

 
 
Angel Soft
Guest
Posts: n/a
 
      18th Oct 2004
sorry, I have a stupid question
I open a form with ShowDialog because I need a value from this form.
how do I set the result value of this "dialog" form?
DialogResult property do not accept any value.

Tx

Nick



 
Reply With Quote
 
 
 
 
Arne Janning
Guest
Posts: n/a
 
      19th Oct 2004
Hi Angel Soft!

"Angel Soft" schrieb
> sorry, I have a stupid question
> I open a form with ShowDialog because I need a value from this form.
> how do I set the result value of this "dialog" form?
> DialogResult property do not accept any value.


Read this:
http://www.knowdotnet.com/articles/acceptcancel.html

Cheers

Arne Janning


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th Oct 2004
"Angel Soft" <(E-Mail Removed)> schrieb:
> I open a form with ShowDialog because I need a value
> from this form.
> how do I set the result value of this "dialog" form?
> DialogResult property do not accept any value.


Add an additional property to the form that holds the return "value".
Inside your form you set the property and check the property when
'ShowDialog' returns.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending DialogResult or? WP Microsoft C# .NET 2 16th Mar 2008 03:35 AM
VS2005 DialogResult rk Microsoft VC .NET 11 1st Mar 2006 01:57 PM
VB.NET 2005 DialogResult.OK? dm1608 Microsoft VB .NET 2 13th Dec 2005 10:51 PM
DialogResult =?Utf-8?B?QmVlZWVlZWVlZWVlZXZlcw==?= Microsoft C# .NET 1 29th Jun 2004 02:46 PM
DialogResult and CancelButton Lee Moody Microsoft VB .NET 2 24th Mar 2004 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.