commit 9a330833408e50fdb0352d2ead3c694e5d2ae1b9 Author: John Espiritu Date: Thu Oct 15 00:27:19 2020 +0800 Initial commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ee5385 --- /dev/null +++ b/.gitignore @@ -0,0 +1,362 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd diff --git a/ComboBoxDemo/App.config b/ComboBoxDemo/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/ComboBoxDemo/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ComboBoxDemo/CustomPopupDemo.csproj b/ComboBoxDemo/CustomPopupDemo.csproj new file mode 100644 index 0000000..df6c528 --- /dev/null +++ b/ComboBoxDemo/CustomPopupDemo.csproj @@ -0,0 +1,96 @@ + + + + + Debug + AnyCPU + {C6ACA841-D497-49B7-A4F8-2D4A83B116DD} + WinExe + CustomPopupDemo + CustomPopupDemo + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Component + + + Form + + + MainForm.cs + + + + + UserControl + + + EmployeePicker.cs + + + MainForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + EmployeePicker.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/ComboBoxDemo/DropDown.cs b/ComboBoxDemo/DropDown.cs new file mode 100644 index 0000000..8abb089 --- /dev/null +++ b/ComboBoxDemo/DropDown.cs @@ -0,0 +1,19 @@ +using System.Windows.Forms; + +namespace CustomPopupDemo +{ + class DropDown : ToolStripDropDown + { + public DropDown(Control content) { + Margin = Padding.Empty; + Padding = Padding.Empty; + + ToolStripControlHost host = new ToolStripControlHost(content); + + host.Margin = Padding.Empty; + host.Padding = Padding.Empty; + + Items.Add(host); + } + } +} diff --git a/ComboBoxDemo/EmployeePicker.Designer.cs b/ComboBoxDemo/EmployeePicker.Designer.cs new file mode 100644 index 0000000..af3c054 --- /dev/null +++ b/ComboBoxDemo/EmployeePicker.Designer.cs @@ -0,0 +1,64 @@ +namespace CustomPopupDemo +{ + partial class EmployeePicker + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.mainListBox = new System.Windows.Forms.ListBox(); + this.SuspendLayout(); + // + // mainListBox + // + this.mainListBox.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.mainListBox.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.mainListBox.FormattingEnabled = true; + this.mainListBox.IntegralHeight = false; + this.mainListBox.ItemHeight = 17; + this.mainListBox.Location = new System.Drawing.Point(3, 3); + this.mainListBox.Name = "mainListBox"; + this.mainListBox.Size = new System.Drawing.Size(275, 199); + this.mainListBox.TabIndex = 3; + this.mainListBox.DoubleClick += new System.EventHandler(this.MainListBox_DoubleClick); + this.mainListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MainListBox_KeyDown); + // + // EmployeePicker + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.Controls.Add(this.mainListBox); + this.DoubleBuffered = true; + this.Name = "EmployeePicker"; + this.Size = new System.Drawing.Size(278, 202); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.ListBox mainListBox; + } +} diff --git a/ComboBoxDemo/EmployeePicker.cs b/ComboBoxDemo/EmployeePicker.cs new file mode 100644 index 0000000..25ee284 --- /dev/null +++ b/ComboBoxDemo/EmployeePicker.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; + +namespace CustomPopupDemo +{ + public partial class EmployeePicker : UserControl + { + class EmployeePickerItem + { + public string Code { get; set; } + public string Name { get; set; } + } + + TextBox TargetTextBox { get; set; } + + private ToolStripDropDown Popup + { + get { + return (Parent is ToolStripDropDown popup) ? popup : null; + } + } + + public EmployeePicker(TextBox input) + { + InitializeComponent(); + + List options = new List() { + new EmployeePickerItem() {Code = "001", Name = "John Doe"}, + new EmployeePickerItem() {Code = "002", Name = "Jane Doe"}, + new EmployeePickerItem() {Code = "003", Name = "Steve Jobs"}, + new EmployeePickerItem() {Code = "004", Name = "Bill Gates"}, + new EmployeePickerItem() {Code = "005", Name = "Jeff Bezos"}, + new EmployeePickerItem() {Code = "006", Name = "Mark Twain"}, + new EmployeePickerItem() {Code = "007", Name = "Yoh Asakura"}, + new EmployeePickerItem() {Code = "008", Name = "Ruby Rose"}, + new EmployeePickerItem() {Code = "009", Name = "Rintarou Okabe"}, + new EmployeePickerItem() {Code = "010", Name = "Kurisu Makise"}, + new EmployeePickerItem() {Code = "011", Name = "Weiss Schnee"}, + new EmployeePickerItem() {Code = "012", Name = "Nokz LeBron"}, + }; + + mainListBox.DataSource = new BindingList(options); + mainListBox.DisplayMember = "Name"; + mainListBox.ValueMember = "Code"; + + TargetTextBox = input; + } + + private void Close() + { + Popup.Close(); + Dispose(); + } + + private void MainListBox_DoubleClick(object sender, EventArgs e) + { + TargetTextBox.Text = mainListBox.SelectedValue.ToString(); + Close(); + } + + private void MainListBox_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode != Keys.Enter) { + return; + } + TargetTextBox.Text = mainListBox.SelectedValue.ToString(); + Close(); + } + } +} diff --git a/ComboBoxDemo/EmployeePicker.resx b/ComboBoxDemo/EmployeePicker.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ComboBoxDemo/EmployeePicker.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ComboBoxDemo/MainForm.Designer.cs b/ComboBoxDemo/MainForm.Designer.cs new file mode 100644 index 0000000..b764a58 --- /dev/null +++ b/ComboBoxDemo/MainForm.Designer.cs @@ -0,0 +1,84 @@ +namespace CustomPopupDemo +{ + partial class MainForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.dataGridViewDemo = new System.Windows.Forms.DataGridView(); + this.dgvColCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dgvColEmployeeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewDemo)).BeginInit(); + this.SuspendLayout(); + // + // dataGridViewDemo + // + this.dataGridViewDemo.BackgroundColor = System.Drawing.Color.WhiteSmoke; + this.dataGridViewDemo.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridViewDemo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewDemo.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dgvColCode, + this.dgvColEmployeeName}); + this.dataGridViewDemo.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewDemo.Location = new System.Drawing.Point(0, 0); + this.dataGridViewDemo.Name = "dataGridViewDemo"; + this.dataGridViewDemo.Size = new System.Drawing.Size(393, 167); + this.dataGridViewDemo.TabIndex = 3; + this.dataGridViewDemo.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.MainDataGridView_EditingControlShowing); + // + // dgvColCode + // + this.dgvColCode.HeaderText = "Code"; + this.dgvColCode.Name = "dgvColCode"; + // + // dgvColEmployeeName + // + this.dgvColEmployeeName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dgvColEmployeeName.HeaderText = "Employee Name"; + this.dgvColEmployeeName.Name = "dgvColEmployeeName"; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(393, 167); + this.Controls.Add(this.dataGridViewDemo); + this.DoubleBuffered = true; + this.Name = "MainForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Custom Popup Demo"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewDemo)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.DataGridView dataGridViewDemo; + private System.Windows.Forms.DataGridViewTextBoxColumn dgvColCode; + private System.Windows.Forms.DataGridViewTextBoxColumn dgvColEmployeeName; + } +} + diff --git a/ComboBoxDemo/MainForm.cs b/ComboBoxDemo/MainForm.cs new file mode 100644 index 0000000..631b828 --- /dev/null +++ b/ComboBoxDemo/MainForm.cs @@ -0,0 +1,35 @@ +using System.Drawing; +using System.Windows.Forms; + +namespace CustomPopupDemo +{ + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + + private void MainDataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) + { + // show only on "Code" column cells + if (dataGridViewDemo.CurrentCell.ColumnIndex != dataGridViewDemo.Columns["dgvColCode"].Index) { + return; + } + + DataGridViewTextBoxEditingControl textBox = e.Control as DataGridViewTextBoxEditingControl; + Rectangle cellRect = dataGridViewDemo.GetCellDisplayRectangle(dataGridViewDemo.CurrentCell.ColumnIndex, dataGridViewDemo.CurrentCell.RowIndex, true); + + // cell should be a textbox + if (textBox == null) { + return; + } + + // display the popup below the cell + EmployeePicker popup = new EmployeePicker(textBox); + new DropDown(popup).Show((Control)sender, new Point(cellRect.Left, cellRect.Top + cellRect.Height)); + + popup.Focus(); + } + } +} diff --git a/ComboBoxDemo/MainForm.resx b/ComboBoxDemo/MainForm.resx new file mode 100644 index 0000000..cea9cfa --- /dev/null +++ b/ComboBoxDemo/MainForm.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + \ No newline at end of file diff --git a/ComboBoxDemo/Program.cs b/ComboBoxDemo/Program.cs new file mode 100644 index 0000000..00a2bd1 --- /dev/null +++ b/ComboBoxDemo/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CustomPopupDemo +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + } + } +} diff --git a/ComboBoxDemo/Properties/AssemblyInfo.cs b/ComboBoxDemo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b7f9d95 --- /dev/null +++ b/ComboBoxDemo/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Custom Popup Demo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Custom Popup Demo")] +[assembly: AssemblyCopyright("Copyright © John Espiritu 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c6aca841-d497-49b7-a4f8-2d4a83b116dd")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ComboBoxDemo/Properties/Resources.Designer.cs b/ComboBoxDemo/Properties/Resources.Designer.cs new file mode 100644 index 0000000..5111e5d --- /dev/null +++ b/ComboBoxDemo/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CustomPopupDemo.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CustomPopupDemo.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/ComboBoxDemo/Properties/Resources.resx b/ComboBoxDemo/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ComboBoxDemo/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ComboBoxDemo/Properties/Settings.Designer.cs b/ComboBoxDemo/Properties/Settings.Designer.cs new file mode 100644 index 0000000..dabfdfe --- /dev/null +++ b/ComboBoxDemo/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CustomPopupDemo.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/ComboBoxDemo/Properties/Settings.settings b/ComboBoxDemo/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/ComboBoxDemo/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/CustomPopupDemo.sln b/CustomPopupDemo.sln new file mode 100644 index 0000000..67833ee --- /dev/null +++ b/CustomPopupDemo.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30517.126 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomPopupDemo", "ComboBoxDemo\CustomPopupDemo.csproj", "{C6ACA841-D497-49B7-A4F8-2D4A83B116DD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C6ACA841-D497-49B7-A4F8-2D4A83B116DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6ACA841-D497-49B7-A4F8-2D4A83B116DD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C6ACA841-D497-49B7-A4F8-2D4A83B116DD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C6ACA841-D497-49B7-A4F8-2D4A83B116DD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CFC2FB87-2F05-411A-8C71-F0E18E17D68B} + EndGlobalSection +EndGlobal