首页 > 解决方案 > 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;

标签: c#winforms

解决方案


推荐阅读