true...have class that will take a screen shot if a windows form...ok..my question should be
How do i determine if the code is running on winforms? On Wed, Sep 14, 2011 at 1:19 PM, David Kean <[email protected]>wrote: > What's the scenario? What if you are in a windows service, console, WPF > or Windows 8 App? > > Sent from my Windows Phone > ------------------------------ > From: Anthony Mayan > Sent: Tuesday, September 13, 2011 8:08 PM > To: ozDotNet > Subject: Re: Detect whether asp.net or winform > > > yep..thats what i was thinking to do also...thanks > > On Wed, Sep 14, 2011 at 12:55 PM, Raghu Rana <[email protected]> wrote: > >> I suppose you can check in your class library if HttpContext.Current is >> null ? >> >> >> On Wed, Sep 14, 2011 at 12:52 PM, Anthony Mayan <[email protected]>wrote: >> >>> Is it possible to detect whether the code is runing on asp.net or >>> winforms from a class library? >>> >>> Anthony >>> >> >> >> >> -- >> Raghu Rana >> Mobile: +61 432 139 301 >> Email: [email protected] >> > >
