Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 90781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:55:37+00:00 2026-05-10T22:55:37+00:00

In an app I’m coding I would like to make an alert message to

  • 0

In an app I’m coding I would like to make an alert message to appear that displays a large semi-transparent warning message without affecting the users work. Basically I will fade in the message but never set it’s opacity to 1 and I want the user to be able to click ‘through’ the message as if it isn’t there.

I have started by using an always on top window and setting the window style to none and setting the background and transparency key to white. On this window there is a label with a large font which contains the alert message (later I’ll probably override the paint event and paint the message using GDI). I use a timer to fade in the message by dialling up it’s opacity before dialling it back down again. It works OK in that the focus isn’t stolen from any apps but the transparent form captures the mouse events, not the form below it (actually most of the form which is transparent doesn’t capture the mouse events, only the label text does).

Also I’m not sure it’s the optimal approach, maybe I should be painting straight to the screen somehow.

How should I improve things.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:55:37+00:00Added an answer on May 10, 2026 at 10:55 pm

    Override the CreateParams property on your Form class and make sure the WS_EX_NOACTIVATE extended style is set. Mine looks like this:

    protected override CreateParams CreateParams {   get   {     CreateParams baseParams = base.CreateParams;      baseParams.ExStyle |= ( int )(       Win32.ExtendedWindowStyles.WS_EX_LAYERED |       Win32.ExtendedWindowStyles.WS_EX_TRANSPARENT |       Win32.ExtendedWindowStyles.WS_EX_NOACTIVATE |       Win32.ExtendedWindowStyles.WS_EX_TOOLWINDOW );      return baseParams;   } } 

    Values for ExtendedWindowStyles used above are:

    WS_EX_LAYERED = 0x00080000, WS_EX_NOACTIVATE = 0x08000000, WS_EX_TOOLWINDOW = 0x00000080, WS_EX_TRANSPARENT = 0x00000020, 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app has a common class that displays an actionSheet whenever Contact Us is
App Engine recently announced support for Cross Group (XG) transactions ; one would expect
App is in prism/mvvm/mef and uses loading by attribute like StockTraderRI. My shell window
app crashes when pressing back button log description:- [FootballScoreBoardViewController bannerViewDidLoadAd:]: message sent to deallocated
App store approval guideline says that Apps that send Push Notifications without first obtaining
app.get(/:name?/:group?, function(req, res){... is matching files that are in my public directory. So if
App_1 has a view and a template for this view. It would like to
My app has an advanced feature that accepts SQL queries written by the user.
My app is set up so that if a user signs in with Oauth
App Engine only allows you to use these formats for XMPP addresses: app-id@appspot.com anything@app-id.appspotchat.com

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.