Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Opening windows form from webservice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pintu - 10 Oct 2007 14:26 GMT
Hi Friends,
I am creating one application in asp.net 2.0,c# and requirement is to
open a winform while starting window and call the webservice to update
some information entered in the form.Now my requirement is to use
windows service to open the form..(Though i can use windows
application and put the exe in start-up folder to fullfil my
requirement)..And the form will take input from user.

So is it possible to open any form from Windows Service? I am trying
it since last few hours but failed to do so..Plz help..Waiting for ur
reply..

Thanks in advance.
priyabrata
bruce barker - 10 Oct 2007 14:53 GMT
in general no. a windows service does not have access to the desktop.
this makes sense if you think about it. the user can logout and login in
as another user.

-- bruce (sqlwork.com)

> Hi Friends,
> I am creating one application in asp.net 2.0,c# and requirement is to
[quoted text clipped - 10 lines]
> Thanks in advance.
> priyabrata
Peter Bromberg [C# MVP] - 10 Oct 2007 19:07 GMT
You really don't want to try to use a Windows Service to open any Forms or
applications that have a UI. Services start and run before any user is even
logged into the machine.
What you can do instead is put a shortcut to your application in the
/Startup folder and it will run as soon as a user has logged on to the
machine.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi Friends,
> I am creating one application in asp.net 2.0,c# and requirement is to
[quoted text clipped - 10 lines]
> Thanks in advance.
> priyabrata

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.