没有合适的资源?快使用搜索试试~ 我知道了~
C#随机启动、监控WINDOWS服务的窗体程序
4星 · 超过85%的资源 需积分: 31 133 下载量 38 浏览量
2011-01-11
09:28:56
上传
评论 1
收藏 136KB PDF 举报
温馨提示
试读
8页
C#随机启动、监控WINDOWS服务的窗体程序C#随机启动、监控WINDOWS服务的窗体程序C#随机启动、监控WINDOWS服务的窗体程序C#随机启动、监控WINDOWS服务的窗体程序C#随机启动、监控WINDOWS服务的窗体程序
资源推荐
资源详情
资源评论
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.windows.Forms;
using System.Data;
using System.ServiceProcess;
using System.IO;
using Microsoft.Win32;
namespace WatchService
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class WatchService : System.windows.Forms.Form
{
private System.windows.Forms.Button btn_startWatch;
private System.windows.Forms.Button btn_stopWatch;
private System.windows.Forms.Button btn_startReg;
private System.windows.Forms.Button btn_stopReg;
private System.windows.Forms.Label lbl_appStatus;
private System.windows.Forms.TextBox tbx_serviceName;
private System.windows.Forms.Button btn_Exit;
private System.windows.Forms.TextBox tbx_interval;
private System.windows.Forms.Timer timer1;
private System.windows.Forms.NotifyIcon notifyIcon1;
private System.ComponentModel.IContainer components;
public WatchService()
{
//
// windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
闻立武
- 粉丝: 10
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页