91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 222KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-14
  • 語言: C#
  • 標簽:

資源簡介

Custom Controls C# WinForm 自定義ComboBox 顯示顏色下拉框,在WinForm界面設計方面,采用自定義的ComboBox控件實現下拉框可選擇顏色列表。可顯示顏色小方塊,源代碼可在VS2008下編譯通過。

資源截圖

代碼片段和文件信息

//---------------------------------------------------------------------
//??Copyright?(C)?Microsoft?Corporation.??All?rights?reserved.
//?
//THIS?CODE?AND?INFORMATION?ARE?PROVIDED?AS?IS?WITHOUT?WARRANTY?OF?ANY
//KIND?EITHER?EXPRESSED?OR?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE
//IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND/OR?FITNESS?FOR?A
//PARTICULAR?PURPOSE.
//---------------------------------------------------------------------

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Diagnostics;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Windows.Forms.Visualstyles;
using?System.Collections;
using?System.Reflection;

namespace?DataGridViewAutoFilter
{
????///?
????///?Provides?a?drop-down?filter?list?in?a?DataGridViewColumnHeaderCell.
????///?

????public?class?DataGridViewAutoFilterColumnHeaderCell?:?DataGridViewColumnHeaderCell
????{
????????///?
????????///?The?ListBox?used?for?all?drop-down?lists.?
????????///?

????????private?static?FilterListBox?dropDownListBox?=?new?FilterListBox();

????????///?
????????///?A?list?of?filters?available?for?the?owning?column?stored?as?
????????///?formatted?and?unformatted?string?values.?
????????///?

????????private?System.Collections.Specialized.OrderedDictionary?filters?=
????????????new?System.Collections.Specialized.OrderedDictionary();

????????///?
????????///?The?drop-down?list?filter?value?currently?in?effect?for?the?owning?column.?
????????///?

????????private?String?selectedFilterValue?=?String.Empty;

????????///?
????????///?The?complete?filter?string?currently?in?effect?for?the?owning?column.?
????????///?

????????private?String?currentColumnFilter?=?String.Empty;

????????///?
????????///?Indicates?whether?the?DataGridView?is?currently?filtered?by?the?owning?column.??
????????///?

????????private?Boolean?filtered;

????????///?
????????///?Initializes?a?new?instance?of?the?DataGridViewColumnHeaderCell?
????????///?class?and?sets?its?property?values?to?the?property?values?of?the?
????????///?specified?DataGridViewColumnHeaderCell.
????????///?

????????///?The?DataGridViewColumnHeaderCell?to?copy?property?values?from.
????????public?DataGridViewAutoFilterColumnHeaderCell(DataGridViewColumnHeaderCell?oldHeaderCell)
????????{
????????????this.ContextMenuStrip?=?oldHeaderCell.ContextMenuStrip;
????????????this.ErrorText?=?oldHeaderCell.ErrorText;
????????????this.Tag?=?oldHeaderCell.Tag;
????????????this.ToolTipText?=?oldHeaderCell.ToolTipText;
????????????this.Value?=?oldHeaderCell.Value;
????????????this.ValueType?=?oldHeaderCell.ValueType;

????????????//?Use?Hasstyle?to?avoid?creating?a?new?style?object
????????????//?when?the?style?property?has?not?previously?been?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

-----------?---------??----------?-----??----

??????????????1297225????????????????????84


評論

共有 條評論

相關資源