c# - Winform c#组合框边框就像我程序中的一个洞
问题描述
我知道这是一件小事,但它真的很烦人。我有一个 winform 项目,在其中添加了一个组合框,但边框就像我的程序中的一个洞。如果我单击边框,它会将我导航到下面的窗口。
属性集
this.cbAvailableProjects.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.cbAvailableProjects.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.cbAvailableProjects.BackColor = System.Drawing.SystemColors.Control;
this.cbAvailableProjects.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.cbAvailableProjects.Font = new System.Drawing.Font("Century Gothic", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbAvailableProjects.FormattingEnabled = true;
this.cbAvailableProjects.Location = new System.Drawing.Point(20, 33);
this.cbAvailableProjects.Name = "cbAvailableProjects";
this.cbAvailableProjects.Size = new System.Drawing.Size(197, 25);
this.cbAvailableProjects.TabIndex = 4;
解决方案
推荐阅读
- spring-boot - Kafka消费者失败记录需要存入文件,需要重新处理
- encryption - 如何通过cm发送解密密码:蓝图中的占位符
- c - 如何在列表中插入特定数量的元素?
- python - Python从JSON读取逗号分隔列表
- javascript - 值出现在 console.log 中,但在通过 innerHTML 分配时未定义
- flutter - 在同一类中获得更改的值?
- python - 如何获得要显示的 matplot lib 图?
- discord.js - discord.js 模块问题使机器人崩溃
- video - x264 / libx264 : 只能将一个 I/P 帧用作 B 帧的参考吗?
- python - MongoDB - $set 和 $addToSet 之间的优先级