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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:08:21+00:00 2026-05-11T04:08:21+00:00

Update: We are still using XP at work and I got my solution working,

  • 0

Update: We are still using XP at work and I got my solution working, but now knowing that Vista and beyond have the isolated session I am going to implement a WCF IPC…

I have a windows service that needs to notify the user of an event of some type occurring. I decided that something similar to email notification messages would make sense. It also makes sense to do such a simple UI using WPF. This would allow me to learn some basics.

I run a thread:

Thread thread = new Thread(new ThreadStart(RunUserNotificationOnIndependantThread)); thread.SetApartmentState(ApartmentState.STA); thread.Start(); 

Then I set up the object and call the method that calls DoubleAnimation.BeginAnimation

private void RunUserNotificationOnIndependantThread()     {         UserNotificationWithImage test = new UserNotificationWithImage();          test.Title = _title;         test.Url = _url;         test.Message = _message;          test.LoadUserNotification();     }      public void LoadUserNotification()     {         Rect workAreaRectangle = System.Windows.SystemParameters.WorkArea;         Left = workAreaRectangle.Right - Width - BorderThickness.Right;         Top = workAreaRectangle.Bottom - Height - BorderThickness.Bottom;          _fadeInAnimation.Completed += new EventHandler(_fadeInAnimation_Completed);          // Start the fade in animation         BeginAnimation(UserNotificationBase.OpacityProperty, _fadeInAnimation);     } 

The debugger reaches BeginAnimation(…) and no window appears. Is this even possible or what am I doing wrong in attempting this???

The UserNotification code is based on a blog by Nicke Andersson: WPF Desktop Alert blog

Thanks for any help!!

  • 1 1 Answer
  • 1 View
  • 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-11T04:08:21+00:00Added an answer on May 11, 2026 at 4:08 am

    On XP a service that interact with the desktop has two serious problems to overcome – what to do when no users are logged in and what to do when several user are logged in (fast user switching and terminal services are the two most common ways to log in more then one user).

    On Vista, for security reasons, services run on their own isolated desktop so any UI you show will go on that special desktop that no user can ever access.

    You should write a small Gui program that runs on the user’s desktop and communicate with the service using some type of IPC (Remoting, Soap, Rest, named pipes, files, whatever you like).

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

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • 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 Flash is very limited to what HTML it can render… May 11, 2026 at 11:32 pm
  • Editorial Team
    Editorial Team added an answer INSERT INTO tabl2 (name, id) SELECT name, id FROM table1… May 11, 2026 at 11:32 pm
  • Editorial Team
    Editorial Team added an answer You might be able to union them. list.AddRange( query1.Union(query2).Union(query3)); May 11, 2026 at 11:32 pm

Related Questions

My python project has a C++ component which is compiled and distributed as a
We are currently working in a private beta and so are still in the
We have been using Scrum for around 9 months and it has largely been
I recently participated a project that replaced a mainframe system with a web (asp.net

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.