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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:07:55+00:00 2026-06-04T03:07:55+00:00

Possible Duplicate: remove application icon from the taskbar using .net with c# I am

  • 0

Possible Duplicate:
remove application icon from the taskbar using .net with c#

I am adding window application form icon to taskbar using this code

 ResourceManager resManager = new ResourceManager("SMSLAgent.Properties.Resources", GetType().Module.Assembly);
                notifyicon.Icon = (Icon)resManager.GetObject("SMSLAgent");
                notifyicon.Visible = true;
                notifyicon.Text = "PA Agent";
                this.Hide();
                this.ShowInTaskbar = false;
                this.SetVisibleCore(false);

This code is added in asp.net windows form application initilizaion method. It works but the problem is, I am running windows form exe using windows service with administrator privilege in windows7.

On windows reboot not adding icon showing as a windows form application but when I restart my windows service it works fine.
What’s wrong here?

  • 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-04T03:07:56+00:00Added an answer on June 4, 2026 at 3:07 am

    This apparently has something to do with being (not) logged in. This could be checked by enabling autologin and making sure you show the icon after it kicks in. Same thing might happen with logging in via RDP and hitting a different session. We had some software showing an icon like this and had to use “mstsc /console”. Given that allowing services to interact with desktop (even if in somewhat indirect way) is frowned upon anyway and the winform app will have kind of its own desktop under Windows Server XXX (do not remember which, but it differs from what you’ll see in XP; try showing a window and see), we went with an application startable as either completely non-interactive service or winforms with icon (the later either manual or scheduled).

    Still not a complete answer, but I hope it will help get one.

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

Sidebar

Related Questions

Possible Duplicate: Remove application icon and title from Honeycomb action bar can this be
Possible Duplicate: Remove CSS from a Div using JQuery we can set backgroung-image property
Possible Duplicate: Remove non breaking space ( ) from between elements using jquery How to
Possible Duplicate: remove duplicate from string in PHP Have a string like: $str =
Possible Duplicate: php multi-dimensional array remove duplicate I have an array like this: $a
Possible Duplicate: php regexp: remove all attributes from an html tag $input = '<div
Possible Duplicate: Standard way to remove multiple elements from a dataframe I know in
Possible Duplicate: Remove the date/time in my sql script generated using EM? Database -
Possible Duplicate: XmlSerializer: remove unnecessary xsi and xsd namespaces I'm generating some XML using
Possible Duplicate: Getting a value from HttpServletRequest.getRemoteUser() in Tomcat without modifying application Short version:

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.