
C#
素颜___man
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C#窗体应用程序winform的groupBox去掉边框
重写paint事件:private void groupBox1_Paint(object sender, System.Windows.Forms.PaintEventArgs e){e.Graphics.Clear(this.BackColor);}转自https://blog.youkuaiyun.com/u012252959/article/details/50559675?utm_source=blogxgwz9转载 2020-08-27 21:40:05 · 5096 阅读 · 0 评论 -
C# 自己选择文档存放位置
private void button4_Click(object sender, EventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.Description = "请选择文件保存位置"; if (di...原创 2019-05-24 17:27:00 · 730 阅读 · 0 评论 -
C#打开文件并目录树显示
List<TreeNode> nodeCheckList = new List<TreeNode>(); TreeNode rootNode; string currentExcelPath = string.Empty; //将被拖动的控件 private Control control; private void Fo...原创 2019-05-17 16:58:59 · 1488 阅读 · 0 评论 -
python打包后与c#窗体连接
string debugPath = System.Environment.CurrentDirectory; //此c#项目的debug文件夹路径 string Path = debugPath + "\\DBSCAN.exe"; Process p = new Process(); p...原创 2019-05-17 19:28:49 · 421 阅读 · 0 评论 -
C# 中 PictureBox 加载图片后无法删除解决方法
PictureBox加载图片后,再将Image属性值设置为null,但本地图片仍无法删除,提示文件正被另一个程序使用,相关代码:复制内容到剪贴板程序代码//显示图片private void button1_Click(object sender, EventArgs e){pictureBox1.Image = Image.FromFile(@“f:\demo.gif”);}//不显...转载 2019-06-27 16:17:38 · 2605 阅读 · 0 评论 -
在wpf或winform关闭子窗口或对子窗口进行某个操作后刷新父窗口
父窗口://////弹出窗口/////////privatevoid miFuncSet_Click(object sender, RoutedEventArgs e){WinFuncSetting funcSetting =new WinFuncSetting();funcSetting.ChangeTextEvent +=new ChangeTextHandler(FuncS...转载 2019-06-27 16:20:04 · 767 阅读 · 0 评论