Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible Threading situation
Message
 
To
12/03/2004 06:39:01
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00885530
Message ID:
00886823
Views:
19
>Hi all
>
>I have 2 methods in a class, ShowForm() and FormRespond(). The situation is that ShowForm() will fire up a form and display it, however, when the form is displayed it can and will at somepoint call the FormRespond() method in the class, once the FormRespond() method is called I want ShowForm() to continue and return the reponse from the form.
>
>However, the problem arises because I don't want the form modal, I don't want to have to close the form to recieve its response, I need it to respond itself.
>
>In a nutshell ShowForm() needs to do:
>
>
  • Display the Form
    >
  • Wait around until the form has called respond
    >
  • FormRespond is called, then (somehow) informs ShowForm that it can continue
    >
  • ShowForm then continues and returns the value
    >
    >Is this possible? The reason for using Show() is that the form doesn't need to close once it has responded, so I want it to still display.
    >
    >Hope that makes sense
    >Thanks

    Can you just publish a public event and subscribe to it?
    Make the form have an event that is fired in your respond method.
    Brian Seekford
    Seekford Solutions, Inc.
    http://www.SeekfordSolutions.com
    Internet ActiveX Controls and .NET Class Libraries.
    SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
    Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
    Resizer and Tooltips
    Email Verification and more. Check us out!
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform