随笔分类 - Winform
摘要:最近写个小程序,打包覆盖安装更新时老是不起作用,还是原来的程序。 在网上四处查找,productcode和ersion都已经更改,removepreviousversions也设置成true了,可就是不能更新。 最后对比了下程序,发现每次覆盖安装后安装路径下别的文件的最后修改时间都更新了,就是主输出
阅读全文
摘要://调用方法:设置开机启动 SetAutoRun(Process.GetCurrentProcess().ProcessName, true, Application.StartupPath + @"\" + Process.GetCurrentProcess().ProcessName + ".e
阅读全文
摘要:1.添加notifyIcon1,并添加Icon图标(.ico文件) 2.添加contextMenuStrip1 3.contextMenuStrip1.Items属性添加选项 4.界面上双击选项编写事件 5.选项退出 private void toolStripMenuItem1_Click(obj
阅读全文
摘要:private void btnFile_Click(object sender, EventArgs e) { OpenFileDialog fileDialog = new OpenFileDialog(); fileDialog.Multiselect = true; fileDialog.T...
阅读全文