- 博客(19)
- 资源 (18)
- 问答 (2)
- 收藏
- 关注
原创 c# winform datagridview 单选按钮
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Common{/// <summary>/// radio button单元格.
2020-07-30 09:27:08 1949
原创 pip3不存在,但是安装了python3.7的版本
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
2020-07-29 17:47:51 427
原创 C# DataGridView 合并相同的行
private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e){if (e.RowIndex >= 0 && e.ColumnIndex >= 0 && e.Value.ToString() != string.Empty){#regionint UpRows = 0;//上面相同的行数int DownRows = 0;//下面相同.
2020-07-28 15:42:28 570 2
原创 c# winform datagridview 禁用第一列空白列
RowHeadersVisible = false;//禁止排序 for (int i = 0; i < this.dataGridView1.Columns.Count; i++) { this.dataGridView1.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; }
2020-07-28 14:40:55 1212
原创 python解析json方式
@algorithm.route("/search", methods=["POST", "GET"])def show_index(): # as_text=True 接收json内容 json_str = json.loads(request.get_data(as_text=True)) target_text = '' list = None for key, value in json_str.items(): if key=="key".
2020-07-24 09:41:44 747
原创 mysql 某个库下所有表数据行数
SELECT SUM(TABLE_ROWS) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '你的数据库名';
2020-07-23 19:42:39 98
原创 “No such file or directory” when files are in the same directory
import osimport sysopen(os.path.join(os.path.dirname(sys.argv[0]), 'yourfile.txt')
2020-07-23 14:11:49 98
原创 c# 禁止c# winform datagridview 拖动列宽
//DataGridView1.AllowUserToResizeColumns = false; dataGridView1.AllowUserToResizeRows = false; // 禁止用户改变列头的高度 dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
2020-07-11 13:50:37 3568
原创 c# winform datagridview 选中行处理
this.datagridview.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
2020-07-11 13:34:17 851
原创 c# winform picturebox
//填满图片 pic_Close.SizeMode = PictureBoxSizeMode.StretchImage;//图片背景颜色pic_Close.BackColor = ColorTranslator.FromHtml("#F6FAFF"); ;
2020-07-06 10:19:00 254
原创 c# vsto ribbon 按钮图片切换
//获取office的运行路径,下面俩必须申明到公共变量,不在方法体中static string RunningPath = AppDomain.CurrentDomain.BaseDirectory;//Image Red = Image.FromFile(RunningPath + "\\Resources\\Red.png");//方法中设置 btn.Image = Red; ...
2020-07-04 23:22:50 4502 1
原创 c# winform 用户控件usercontrol 事件在父窗体触发
User control:[Browsable(true)] [Category("Action")] [Description("调用用户按钮事件")]public event EventHandler ButtonClick;protected void Button1_Click(object sender, EventArgs e){ //bubble the event up to the parent if (this.ButtonClick!= null) .
2020-07-03 16:48:35 3603
原创 c# winform datagridview DataGridViewCheckBoxColumn 复选框互斥操作
private void dataGridView_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 2 && e.RowIndex >= 0) { foreach (DataGridViewRow row in dataGridView.Rows) {.
2020-07-03 00:58:12 504
原创 c# winform showdilag冲突弹出窗体解决办法
//处理提示重复弹出 Form alert = null;private void method(){if (alert == null) { alert = new Form(); alert.ShowDialog();//这边很关键 alert = nul...
2020-07-02 20:35:13 288
office-vsto开发.pdf
2021-11-24
Office安装时候彻底清除历史文件工具之有效版
2020-12-16
ExcelAddIn3.zip
2020-12-11
Weiz.Lab-dgv-表头全选.zip
2020-11-19
ASP.NET MVC Application Using Entity Framework Code First
2014-04-14
c# 获取下面的最子级 双斜杠的都是获取的值
2021-11-08
app绑定微信成功 app怎么知道绑定成功了
2016-11-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人