小编dan*_*ish的帖子

CheckedListBox对接无法正常工作

我为Windows窗体应用程序创建了一个用户控件.它只有一个带有四个单元格的TableLayoutPanel.单元格[0,0]和单元格[0,1]具有标签.Cell [1,0]有一个树视图,cell [1,1]有一个CheckedListBox.

对于所有四个控件,我已将对接设置为Fill.那个怪异的CheckedListBox看起来比TreeView小.有没有办法让控件正确对接?

顺便说一下,我正在使用.Net 3.5和VS 2010.

以下是控件的设计器文件代码:

namespace UserControls
{
    partial class LinkedContent
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support …
Run Code Online (Sandbox Code Playgroud)

c# .net-3.5 winforms

4
推荐指数
1
解决办法
1525
查看次数

标签 统计

.net-3.5 ×1

c# ×1

winforms ×1