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 838419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:18:09+00:00 2026-05-15T05:18:09+00:00

How do i set my window above all other? I need a bad but

  • 0

How do i set my window above all other? I need a bad but noticeable msg box that closes on its own.
Msg is a dummy form which is empty. All i want is its title.
The problems with the code is the window isnt created 0,0 (its just whereever windows feels like putting it). The width is correct but i notice if i click firefox or another app window my app doesnt pop up. I know it is being shown bc i can see it in the taskbar at the bottom for a brief second. So the bugs so far

  1. Doesnt go topmost if i click another app
  2. Isnt 0,0

How do i fix this?

            {
                var msg = new Msg();
                msg.Text = (has ? "*" : "+") + args[0];
                msg.TopMost = true;
                msg.Width = 2000;
                msg.Top = 0;
                msg.Left = 0;
                msg.Show();
                System.Threading.Thread.Sleep(1000);
                msg.Close();
            }
  • 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. Editorial Team
    Editorial Team
    2026-05-15T05:18:09+00:00Added an answer on May 15, 2026 at 5:18 am

    Sounds like TopMost doesn’t always do it; here’s an answer to a similar question showing how to hook into Win32 for the call: Form top most?


    Update: just read the rest of the answer; it might only fail running in Debug mode within Visual Studio (where your app is actually executed with vshost.exe, rather than running independently).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote an attached property that I can set on a window to extend
My WPF window has its foreground brush set to a brush from a resource
I have a window that is set with NSBorderlessWindowMask, and also kCGDesktopWindowLevel. When a
I have a clock application. I have set the Window's TopMost property. But, randomly,
when I open popup window and set location=0 or location=no, url bar is still
I've set the buffer size to the window size to get rid of the
I am opening a window and passing set of parameters to it. In this
When I want a window to be transparent I have to set AllowsTransparency to
Is there a standard set of return code for Window shell scripts (*.bat files)?
how can I set the mouse cursor position in an X window using a

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.