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

  • SEARCH
  • Home
  • 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

Ask A Question

Stats

  • Questions 122k
  • Answers 122k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm not a rebol expert but you may need to… May 12, 2026 at 12:38 am
  • Editorial Team
    Editorial Team added an answer you need to investigate a bit more into styling and… May 12, 2026 at 12:38 am
  • Editorial Team
    Editorial Team added an answer look into restful_authentication (authentication), RedCloth (textile markup language), Hobo (admin… May 12, 2026 at 12:38 am

Related Questions

In an app I'm working on, I have a plain style UITableView that can
In an app I'm coding I would like to make an alert message to
I have a search form in an app I'm currently developing, and I would
I found this PHP code in an app I have to modify... $links =
I have a tree-like structure to my database in an app I am writing

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.