Coder Social home page Coder Social logo

xxxxue / mynotifyiconapp Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 335 KB

C# web project, add system tray icon, add right-click menu, hide console and keep running in the background, 【C# Web项目 添加系统托盘图标, 添加右键菜单, 隐藏控制台, 后台持续运行】

HTML 34.37% C# 42.87% CSS 22.75%

mynotifyiconapp's Introduction

MyNotifyIconApp

只适用于 windows, 因为是用winform实现的

开发环境

  • VS 2022
  • .NET 6

功能

  • 添加任务栏图标 ( 托盘图标 )

    • 添加右键菜单 (打开浏览器 / 控制台 /退出)

    • 双击打开控制台,

  • 启动一个web服务器 ( MVC , Razor , Blazor 等等 )

  • web服务器启动成功,自动打开浏览器页面

核心代码

  • NotifyIconUtils.cs ( 核心工具类代码 )
  • Program.cs (程序的入口)
  • WebProgram.cs (非常普通的 web Host 代码)
  • 其他代码均为普通web代码

提示

想要看效果,

VS 需要改为 Release 运行

或者 发布后运行

截图

image-20220327220351241

mynotifyiconapp's People

Contributors

xxxxue avatar

Stargazers

 avatar  avatar idkook avatar huoxiangdong avatar Spoffer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.