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 / Windows Forms / WinForm General / November 2006

Tip: Looking for answers? Try searching our database.

Open backgrond window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cool  Cow - 05 Nov 2006 12:45 GMT
Hello,

I have a little app that controls PHP cron jobs (automated script
execution) on my local machine.
My app is started once a day at 15h00. The app shows the output of the
script so it has a window, but the window has to be created in the
background so it dousn't show up in front of the other windows.

Example:
Lets say i'm playing a game and my app starts. The app window will
become in front of the game, so the game is minimized (some games even
crash when they loose focus). So that's annoying.

I do want the window to show up, but not in front.
Can this be done?

I'm using vb.net 2003
Stoitcho Goutsev (100) - 06 Nov 2006 16:18 GMT
Hi,

If it is not a problem to show the window minimized quick solution to your
problem would be to set the Form.WindowState to Minimized and the to
override Form.ShowWithoutActivation to return *true*. In this case the form
will be shown, but not activated and as long as it is minimized it won't
pop-up over the other windows. BTW Form.ShowWithoutActivation  is not
declared in .NET 1.x

HTH
Signature

Stoitcho Goutsev (100)

> Hello,
>
[quoted text clipped - 13 lines]
>
> I'm using vb.net 2003

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.