• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

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

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.

  • 2
1 Solution
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
Need to retract my comment.  I was way off - sorry.  I guess I'd better log off and get more coffee.
if you've got vb.net this would be perfect

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now