Solved

Popup that never receives the focus - and doesn't interfere with other apps.

Posted on 2004-08-18
5
233 Views
Last Modified: 2010-04-17
Does anyone know how I can create a popup window that won't interfere with other programs.  One that does not receive the focus.  For example, let's say someone has Word open and is actively typing into Word.  Then my program pops up a window on top of Word, but doesn't interfere with them typing into Word.  Similar to a "you've got mail" popup that goes away on it's own, but never receives the focus and/or interferes with other running applications.

0
Comment
Question by:hartsockt
  • 2
5 Comments
 
LVL 4

Expert Comment

by:rlibrandi
ID: 11840219
With VB you create a form - say frmMain
Inside the form place a text box - txtMessage


In a Public Sub, set the form's properties:

Public Sub Main()
 
     frmMain.Active = False
     frmMain.txtMessage.Text = "Hello"
     'any other settings you want to set here
     .
     .
     .
     Load frmMain
     frmMain.Show 0    'the "0" opens the form as modless
End Sub

Of course you'll have to set your project properties startup object as Sub Main


Hope this helps
0
 
LVL 4

Expert Comment

by:rlibrandi
ID: 11840276
Need to retract my comment.  I was way off - sorry.  I guess I'd better log off and get more coffee.
0
 
LVL 11

Accepted Solution

by:
coopzz earned 125 total points
ID: 11849454
if you've got vb.net this would be perfect

http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now