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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:57:18+00:00 2026-06-17T04:57:18+00:00

In Windows Vista and up, services can no longer access the GUI. However, after

  • 0

In Windows Vista and up, services can no longer access the GUI. However, after writing a simple mechanism to pass messages from my service to a helper GUI application, I found the following overload for System.Windows.Forms.MessageBox.Show, where the “MessageBoxOptions” parameter caught my eye:

public static DialogResult Show(
    string text,
    string caption,
    MessageBoxButtons buttons,
    MessageBoxIcon icon,
    MessageBoxDefaultButton defaultButton,
    MessageBoxOptions options
)

Looking at the enum more closely, one of the valid options is MessageBoxOptions.ServiceNotification, which states on MSDN that:

The message box is displayed on the active desktop. The caller is a
service notifying the user of an event. The function displays a
message box on the current active desktop, even if there is no user
logged on to the computer.

Does this mean that by passing the MessageBox.Show() method this option, my service can actually handle displaying a simple message from the service without having to use a helper application in Vista, Windows 7, and up?

  • 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-06-17T04:57:19+00:00Added an answer on June 17, 2026 at 4:57 am

    MESSAGEBOXOPTIONS ENUM DEMYSTIFIED – Applicable for XP

    Starting with Windows Vista and above, user interfaces generated by Windows services can’t be seen. And even worst, your service could be stuck waiting for some user input that the user cannot give as she does not see anything

    From here


    To display MessageBox in windows service, you need to send WTSSendMessage message. It will show up DialogBox in Session 0 special desktop.

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

Sidebar

Related Questions

Windows provides only GetTickCount up to Windows Vista and starting from that OS also
Yes Vista sucks... I'm writing a Windows Service using .Net but getting security errors
How can a desktop application communicate with a Windows service under Vista/Windows2008/Windows7? The application
On Windows Vista Business, I installed the MSMQ core components but I can not
I'm currently trying to write a Windows Media Center Application (Vista) that can restart
I'm using Tomcat 5.5 on Windows Vista. When I exit my tomcat, I can't
I am using Windows Vista 32bit . I have installed Eclipse Helios Service Release
Until Windows Vista, ATI and nVidia supported a feature called horizontal span, which combined
On Windows Vista, with UAC enabled, everytime a program that requires administrative priviledges starts,
since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic

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.