public Batch_Conversion()
        {
            filelist = new HEIF_Utility.ListViewWithoutScrollBar();

            InitializeComponent();

            FilelistPanel.Controls.Add(filelist);

            //set filelist property
            filelist.Dock = DockStyle.Fill;
            filelist.AllowColumnReorder = false;
            filelist.Columns.Add("filename", 60);
            filelist.HeaderStyle   = ColumnHeaderStyle.None;
            filelist.MultiSelect   = true;
            filelist.TabStop       = false;
            filelist.View          = View.Details;
            filelist.GridLines     = true;
            filelist.FullRowSelect = true;

            try
            {
                filelist.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
            }
            catch (Exception) { }

            //set line spacing
            ImageList imageList = new ImageList();

            imageList.ImageSize     = new Size(1, 20);//1-256
            filelist.SmallImageList = imageList;

            filelist.AllowDrop  = true;
            filelist.DragDrop  += new DragEventHandler(Filelist_DragDrop);
            filelist.DragEnter += new DragEventHandler(Filelist_DragEnter);
        }
Пример #2
0
        public Batch_Conversion()
        {
            InitializeComponent();

            filelist = new HEIF_Utility.Batch_Conversion.ListViewWithoutScrollBar();
            FilelistPanel.Controls.Add(filelist);

            //set filelist property
            filelist.Dock = DockStyle.Fill;
            filelist.AllowColumnReorder = false;
            filelist.Columns.Add("filename", 60);
            filelist.HeaderStyle   = ColumnHeaderStyle.None;
            filelist.MultiSelect   = true;
            filelist.TabStop       = false;
            filelist.View          = View.Details;
            filelist.GridLines     = true;
            filelist.FullRowSelect = true;

            //set line spacing
            ImageList imageList = new ImageList();

            imageList.ImageSize     = new Size(1, 20);//1-256
            filelist.SmallImageList = imageList;
        }