Created
January 4, 2012 04:53
-
-
Save masaru-b-cl/1558568 to your computer and use it in GitHub Desktop.
MyDateTimePicker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/ | |
obj/ | |
*.suo | |
*.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 | |
// アセンブリに関連付けられている情報を変更するには、 | |
// これらの属性値を変更してください。 | |
[assembly: AssemblyTitle("WindowsFormsApplication1")] | |
[assembly: AssemblyDescription("")] | |
[assembly: AssemblyConfiguration("")] | |
[assembly: AssemblyCompany("")] | |
[assembly: AssemblyProduct("WindowsFormsApplication1")] | |
[assembly: AssemblyCopyright("Copyright © 2012")] | |
[assembly: AssemblyTrademark("")] | |
[assembly: AssemblyCulture("")] | |
// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから | |
// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、 | |
// その型の ComVisible 属性を true に設定してください。 | |
[assembly: ComVisible(false)] | |
// 次の GUID は、このプロジェクトが COM に公開される場合の、typelib の ID です | |
[assembly: Guid("ec0a923d-ba3d-431d-b17c-8c27d0e63ef9")] | |
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています: | |
// | |
// Major Version | |
// Minor Version | |
// Build Number | |
// Revision | |
// | |
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を | |
// 既定値にすることができます: | |
// [assembly: AssemblyVersion("1.0.*")] | |
[assembly: AssemblyVersion("1.0.0.0")] | |
[assembly: AssemblyFileVersion("1.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace WindowsFormsApplication1 | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace WindowsFormsApplication1 | |
{ | |
partial class Form1 | |
{ | |
/// <summary> | |
/// 必要なデザイナー変数です。 | |
/// </summary> | |
private System.ComponentModel.IContainer components = null; | |
/// <summary> | |
/// 使用中のリソースをすべてクリーンアップします。 | |
/// </summary> | |
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param> | |
protected override void Dispose(bool disposing) | |
{ | |
if (disposing && (components != null)) | |
{ | |
components.Dispose(); | |
} | |
base.Dispose(disposing); | |
} | |
#region Windows フォーム デザイナーで生成されたコード | |
/// <summary> | |
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を | |
/// コード エディターで変更しないでください。 | |
/// </summary> | |
private void InitializeComponent() | |
{ | |
this.myDateTimePicker1 = new WindowsFormsApplication1.MyDateTimePicker(); | |
this.SuspendLayout(); | |
// | |
// myDateTimePicker1 | |
// | |
this.myDateTimePicker1.Location = new System.Drawing.Point(12, 12); | |
this.myDateTimePicker1.Name = "myDateTimePicker1"; | |
this.myDateTimePicker1.Size = new System.Drawing.Size(106, 23); | |
this.myDateTimePicker1.TabIndex = 4; | |
this.myDateTimePicker1.Value = " / /"; | |
// | |
// Form1 | |
// | |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
this.ClientSize = new System.Drawing.Size(284, 262); | |
this.Controls.Add(this.myDateTimePicker1); | |
this.Name = "Form1"; | |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; | |
this.Text = "Form1"; | |
this.ResumeLayout(false); | |
} | |
#endregion | |
private MyDateTimePicker myDateTimePicker1; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes | |
associated with the data types. | |
Example: | |
... ado.net/XML headers & schema ... | |
<resheader name="resmimetype">text/microsoft-resx</resheader> | |
<resheader name="version">2.0</resheader> | |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
<value>[base64 mime encoded serialized .NET Framework object]</value> | |
</data> | |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
<comment>This is a comment</comment> | |
</data> | |
There are any number of "resheader" rows that contain simple | |
name/value pairs. | |
Each data row contains a name, and value. The row also contains a | |
type or mimetype. Type corresponds to a .NET class that support | |
text/value conversion through the TypeConverter architecture. | |
Classes that don't support this are serialized and stored with the | |
mimetype set. | |
The mimetype is used for serialized objects, and tells the | |
ResXResourceReader how to depersist the object. This is currently not | |
extensible. For a given mimetype the value must be set accordingly: | |
Note - application/x-microsoft.net.object.binary.base64 is the format | |
that the ResXResourceWriter will generate, however the reader can | |
read any of the formats listed below. | |
mimetype: application/x-microsoft.net.object.binary.base64 | |
value : The object must be serialized with | |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
: and then encoded with base64 encoding. | |
mimetype: application/x-microsoft.net.object.soap.base64 | |
value : The object must be serialized with | |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
: and then encoded with base64 encoding. | |
mimetype: application/x-microsoft.net.object.bytearray.base64 | |
value : The object must be serialized into a byte array | |
: using a System.ComponentModel.TypeConverter | |
: and then encoded with base64 encoding. | |
--> | |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
<xsd:element name="root" msdata:IsDataSet="true"> | |
<xsd:complexType> | |
<xsd:choice maxOccurs="unbounded"> | |
<xsd:element name="metadata"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" use="required" type="xsd:string" /> | |
<xsd:attribute name="type" type="xsd:string" /> | |
<xsd:attribute name="mimetype" type="xsd:string" /> | |
<xsd:attribute ref="xml:space" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="assembly"> | |
<xsd:complexType> | |
<xsd:attribute name="alias" type="xsd:string" /> | |
<xsd:attribute name="name" type="xsd:string" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="data"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
<xsd:attribute ref="xml:space" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="resheader"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" use="required" /> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:choice> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:schema> | |
<resheader name="resmimetype"> | |
<value>text/microsoft-resx</value> | |
</resheader> | |
<resheader name="version"> | |
<value>2.0</value> | |
</resheader> | |
<resheader name="reader"> | |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
</resheader> | |
<resheader name="writer"> | |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
</resheader> | |
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using System.Windows.Forms; | |
using System.Drawing; | |
namespace WindowsFormsApplication1 | |
{ | |
public partial class MyDateTimePicker : UserControl | |
{ | |
[Browsable(true)] | |
[DefaultValue("")] | |
[Bindable(true)] | |
public String Value | |
{ | |
get { return this.maskedTextBox1.Text; } | |
set { this.maskedTextBox1.Text = value; } | |
} | |
[Browsable(true)] | |
[DefaultValue("")] | |
[Bindable(true)] | |
[Description("コントロールによって表示されるテキストのフォントを取得または設定します。")] | |
public new Font Font | |
{ | |
get { return this.maskedTextBox1.Font; } | |
set { this.maskedTextBox1.Font = value; } | |
} | |
public MyDateTimePicker() | |
{ | |
InitializeComponent(); | |
} | |
private void button1_Click(object sender, EventArgs e) | |
{ | |
this.dateTimePicker1.Visible = true; | |
this.dateTimePicker1.Select(); | |
SendKeys.SendWait("%{DOWN}"); | |
} | |
private void dateTimePicker1_CloseUp(object sender, EventArgs e) | |
{ | |
this.maskedTextBox1.Text = this.dateTimePicker1.Value.ToString("yyyy/MM/dd"); | |
this.maskedTextBox1.Focus(); | |
} | |
private void dateTimePicker1_DropDown(object sender, EventArgs e) | |
{ | |
var text = this.maskedTextBox1.Text; | |
DateTime oDate; | |
if (DateTime.TryParseExact( | |
text, | |
"yyyy/MM/dd", | |
null, | |
System.Globalization.DateTimeStyles.None, | |
out oDate)) | |
{ | |
this.dateTimePicker1.Value = oDate; | |
} | |
else | |
{ | |
this.dateTimePicker1.Value = DateTime.Today; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | |
<ProductVersion>8.0.30703</ProductVersion> | |
<SchemaVersion>2.0</SchemaVersion> | |
<ProjectGuid>{CF109078-781A-4B85-BB29-0E4D0CCCE2BA}</ProjectGuid> | |
<OutputType>WinExe</OutputType> | |
<AppDesignerFolder>Properties</AppDesignerFolder> | |
<RootNamespace>WindowsFormsApplication1</RootNamespace> | |
<AssemblyName>MyDateTimePicker</AssemblyName> | |
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | |
<TargetFrameworkProfile>Client</TargetFrameworkProfile> | |
<FileAlignment>512</FileAlignment> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | |
<PlatformTarget>x86</PlatformTarget> | |
<DebugSymbols>true</DebugSymbols> | |
<DebugType>full</DebugType> | |
<Optimize>false</Optimize> | |
<OutputPath>bin\Debug\</OutputPath> | |
<DefineConstants>DEBUG;TRACE</DefineConstants> | |
<ErrorReport>prompt</ErrorReport> | |
<WarningLevel>4</WarningLevel> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | |
<PlatformTarget>x86</PlatformTarget> | |
<DebugType>pdbonly</DebugType> | |
<Optimize>true</Optimize> | |
<OutputPath>bin\Release\</OutputPath> | |
<DefineConstants>TRACE</DefineConstants> | |
<ErrorReport>prompt</ErrorReport> | |
<WarningLevel>4</WarningLevel> | |
</PropertyGroup> | |
<ItemGroup> | |
<Reference Include="System" /> | |
<Reference Include="System.Core" /> | |
<Reference Include="System.Xml.Linq" /> | |
<Reference Include="System.Data.DataSetExtensions" /> | |
<Reference Include="Microsoft.CSharp" /> | |
<Reference Include="System.Data" /> | |
<Reference Include="System.Deployment" /> | |
<Reference Include="System.Drawing" /> | |
<Reference Include="System.Windows.Forms" /> | |
<Reference Include="System.Xml" /> | |
</ItemGroup> | |
<ItemGroup> | |
<Compile Include="Form1.cs"> | |
<SubType>Form</SubType> | |
</Compile> | |
<Compile Include="Form1.Designer.cs"> | |
<DependentUpon>Form1.cs</DependentUpon> | |
</Compile> | |
<Compile Include="MyDateTimePicker.cs"> | |
<SubType>UserControl</SubType> | |
</Compile> | |
<Compile Include="MyDateTimePicker.Designer.cs"> | |
<DependentUpon>MyDateTimePicker.cs</DependentUpon> | |
</Compile> | |
<Compile Include="Program.cs" /> | |
<Compile Include="Properties\AssemblyInfo.cs" /> | |
<EmbeddedResource Include="Form1.resx"> | |
<DependentUpon>Form1.cs</DependentUpon> | |
</EmbeddedResource> | |
<EmbeddedResource Include="MyDateTimePicker.resx"> | |
<DependentUpon>MyDateTimePicker.cs</DependentUpon> | |
</EmbeddedResource> | |
<EmbeddedResource Include="Properties\Resources.resx"> | |
<Generator>ResXFileCodeGenerator</Generator> | |
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | |
<SubType>Designer</SubType> | |
</EmbeddedResource> | |
<Compile Include="Properties\Resources.Designer.cs"> | |
<AutoGen>True</AutoGen> | |
<DependentUpon>Resources.resx</DependentUpon> | |
</Compile> | |
<None Include="Properties\Settings.settings"> | |
<Generator>SettingsSingleFileGenerator</Generator> | |
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | |
</None> | |
<Compile Include="Properties\Settings.Designer.cs"> | |
<AutoGen>True</AutoGen> | |
<DependentUpon>Settings.settings</DependentUpon> | |
<DesignTimeSharedInput>True</DesignTimeSharedInput> | |
</Compile> | |
</ItemGroup> | |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |
Other similar extension points exist, see Microsoft.Common.targets. | |
<Target Name="BeforeBuild"> | |
</Target> | |
<Target Name="AfterBuild"> | |
</Target> | |
--> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows.Forms; | |
namespace WindowsFormsApplication1 | |
{ | |
public partial class MyDateTimePicker | |
{ | |
/// <summary> | |
/// 必要なデザイナー変数です。 | |
/// </summary> | |
private System.ComponentModel.IContainer components = null; | |
/// <summary> | |
/// 使用中のリソースをすべてクリーンアップします。 | |
/// </summary> | |
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param> | |
protected override void Dispose(bool disposing) | |
{ | |
if (disposing && (components != null)) | |
{ | |
components.Dispose(); | |
} | |
base.Dispose(disposing); | |
} | |
#region コンポーネント デザイナーで生成されたコード | |
/// <summary> | |
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を | |
/// コード エディターで変更しないでください。 | |
/// </summary> | |
private void InitializeComponent() | |
{ | |
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox(); | |
this.button1 = new System.Windows.Forms.Button(); | |
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); | |
this.SuspendLayout(); | |
// | |
// maskedTextBox1 | |
// | |
this.maskedTextBox1.AsciiOnly = true; | |
this.maskedTextBox1.Font = new System.Drawing.Font("MS ゴシック", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); | |
this.maskedTextBox1.ImeMode = System.Windows.Forms.ImeMode.Off; | |
this.maskedTextBox1.Location = new System.Drawing.Point(0, 1); | |
this.maskedTextBox1.Mask = "0000/00/00"; | |
this.maskedTextBox1.Name = "maskedTextBox1"; | |
this.maskedTextBox1.Size = new System.Drawing.Size(84, 20); | |
this.maskedTextBox1.TabIndex = 0; | |
this.maskedTextBox1.ValidatingType = typeof(System.DateTime); | |
// | |
// button1 | |
// | |
this.button1.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); | |
this.button1.Location = new System.Drawing.Point(84, 0); | |
this.button1.Name = "button1"; | |
this.button1.Size = new System.Drawing.Size(22, 23); | |
this.button1.TabIndex = 1; | |
this.button1.Text = "▼"; | |
this.button1.UseVisualStyleBackColor = true; | |
this.button1.Click += new System.EventHandler(this.button1_Click); | |
// | |
// dateTimePicker1 | |
// | |
this.dateTimePicker1.CustomFormat = "yyyy/MM/dd"; | |
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; | |
this.dateTimePicker1.Location = new System.Drawing.Point(0, 0); | |
this.dateTimePicker1.Name = "dateTimePicker1"; | |
this.dateTimePicker1.Size = new System.Drawing.Size(0, 19); | |
this.dateTimePicker1.TabIndex = 2; | |
this.dateTimePicker1.TabStop = false; | |
this.dateTimePicker1.Visible = false; | |
this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp); | |
this.dateTimePicker1.DropDown += new System.EventHandler(this.dateTimePicker1_DropDown); | |
// | |
// MyDateTimePicker | |
// | |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
this.Controls.Add(this.button1); | |
this.Controls.Add(this.maskedTextBox1); | |
this.Controls.Add(this.dateTimePicker1); | |
this.Name = "MyDateTimePicker"; | |
this.Size = new System.Drawing.Size(106, 23); | |
this.ResumeLayout(false); | |
this.PerformLayout(); | |
} | |
#endregion | |
private System.Windows.Forms.Button button1; | |
private MaskedTextBox maskedTextBox1; | |
private System.Windows.Forms.DateTimePicker dateTimePicker1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes | |
associated with the data types. | |
Example: | |
... ado.net/XML headers & schema ... | |
<resheader name="resmimetype">text/microsoft-resx</resheader> | |
<resheader name="version">2.0</resheader> | |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
<value>[base64 mime encoded serialized .NET Framework object]</value> | |
</data> | |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
<comment>This is a comment</comment> | |
</data> | |
There are any number of "resheader" rows that contain simple | |
name/value pairs. | |
Each data row contains a name, and value. The row also contains a | |
type or mimetype. Type corresponds to a .NET class that support | |
text/value conversion through the TypeConverter architecture. | |
Classes that don't support this are serialized and stored with the | |
mimetype set. | |
The mimetype is used for serialized objects, and tells the | |
ResXResourceReader how to depersist the object. This is currently not | |
extensible. For a given mimetype the value must be set accordingly: | |
Note - application/x-microsoft.net.object.binary.base64 is the format | |
that the ResXResourceWriter will generate, however the reader can | |
read any of the formats listed below. | |
mimetype: application/x-microsoft.net.object.binary.base64 | |
value : The object must be serialized with | |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
: and then encoded with base64 encoding. | |
mimetype: application/x-microsoft.net.object.soap.base64 | |
value : The object must be serialized with | |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
: and then encoded with base64 encoding. | |
mimetype: application/x-microsoft.net.object.bytearray.base64 | |
value : The object must be serialized into a byte array | |
: using a System.ComponentModel.TypeConverter | |
: and then encoded with base64 encoding. | |
--> | |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
<xsd:element name="root" msdata:IsDataSet="true"> | |
<xsd:complexType> | |
<xsd:choice maxOccurs="unbounded"> | |
<xsd:element name="metadata"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" use="required" type="xsd:string" /> | |
<xsd:attribute name="type" type="xsd:string" /> | |
<xsd:attribute name="mimetype" type="xsd:string" /> | |
<xsd:attribute ref="xml:space" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="assembly"> | |
<xsd:complexType> | |
<xsd:attribute name="alias" type="xsd:string" /> | |
<xsd:attribute name="name" type="xsd:string" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="data"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
<xsd:attribute ref="xml:space" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="resheader"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" use="required" /> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:choice> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:schema> | |
<resheader name="resmimetype"> | |
<value>text/microsoft-resx</value> | |
</resheader> | |
<resheader name="version"> | |
<value>2.0</value> | |
</resheader> | |
<resheader name="reader"> | |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
</resheader> | |
<resheader name="writer"> | |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
</resheader> | |
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |
Microsoft Visual Studio Solution File, Format Version 11.00 | |
# Visual C# Express 2010 | |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyDateTimePicker", "MyDateTimePicker.csproj", "{CF109078-781A-4B85-BB29-0E4D0CCCE2BA}" | |
EndProject | |
Global | |
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
Debug|x86 = Debug|x86 | |
Release|x86 = Release|x86 | |
EndGlobalSection | |
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |
{CF109078-781A-4B85-BB29-0E4D0CCCE2BA}.Debug|x86.ActiveCfg = Debug|x86 | |
{CF109078-781A-4B85-BB29-0E4D0CCCE2BA}.Debug|x86.Build.0 = Debug|x86 | |
{CF109078-781A-4B85-BB29-0E4D0CCCE2BA}.Release|x86.ActiveCfg = Release|x86 | |
{CF109078-781A-4B85-BB29-0E4D0CCCE2BA}.Release|x86.Build.0 = Release|x86 | |
EndGlobalSection | |
GlobalSection(SolutionProperties) = preSolution | |
HideSolutionNode = FALSE | |
EndGlobalSection | |
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Windows.Forms; | |
namespace WindowsFormsApplication1 | |
{ | |
static class Program | |
{ | |
/// <summary> | |
/// アプリケーションのメイン エントリ ポイントです。 | |
/// </summary> | |
[STAThread] | |
static void Main() | |
{ | |
Application.EnableVisualStyles(); | |
Application.SetCompatibleTextRenderingDefault(false); | |
Application.Run(new Form1()); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// <auto-generated> | |
// このコードはツールによって生成されました。 | |
// ランタイム バージョン:4.0.30319.239 | |
// | |
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 | |
// コードが再生成されるときに損失したりします | |
// </auto-generated> | |
//------------------------------------------------------------------------------ | |
namespace WindowsFormsApplication1.Properties | |
{ | |
/// <summary> | |
/// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 | |
/// </summary> | |
// このクラスは StronglyTypedResourceBuilder クラスが ResGen | |
// または Visual Studio のようなツールを使用して自動生成されました。 | |
// メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に | |
// ResGen を実行し直すか、または VS プロジェクトをビルドし直します。 | |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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() | |
{ | |
} | |
/// <summary> | |
/// このクラスに使用される、キャッシュされた ResourceManager のインスタンスを返します。 | |
/// </summary> | |
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
internal static global::System.Resources.ResourceManager ResourceManager | |
{ | |
get | |
{ | |
if ((resourceMan == null)) | |
{ | |
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly); | |
resourceMan = temp; | |
} | |
return resourceMan; | |
} | |
} | |
/// <summary> | |
/// 厳密に型指定されたこのリソース クラスを使用して、すべての検索リソースに対し、 | |
/// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 | |
/// </summary> | |
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
internal static global::System.Globalization.CultureInfo Culture | |
{ | |
get | |
{ | |
return resourceCulture; | |
} | |
set | |
{ | |
resourceCulture = value; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes | |
associated with the data types. | |
Example: | |
... ado.net/XML headers & schema ... | |
<resheader name="resmimetype">text/microsoft-resx</resheader> | |
<resheader name="version">2.0</resheader> | |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
<value>[base64 mime encoded serialized .NET Framework object]</value> | |
</data> | |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
<comment>This is a comment</comment> | |
</data> | |
There are any number of "resheader" rows that contain simple | |
name/value pairs. | |
Each data row contains a name, and value. The row also contains a | |
type or mimetype. Type corresponds to a .NET class that support | |
text/value conversion through the TypeConverter architecture. | |
Classes that don't support this are serialized and stored with the | |
mimetype set. | |
The mimetype is used for serialized objects, and tells the | |
ResXResourceReader how to depersist the object. This is currently not | |
extensible. For a given mimetype the value must be set accordingly: | |
Note - application/x-microsoft.net.object.binary.base64 is the format | |
that the ResXResourceWriter will generate, however the reader can | |
read any of the formats listed below. | |
mimetype: application/x-microsoft.net.object.binary.base64 | |
value : The object must be serialized with | |
: System.Serialization.Formatters.Binary.BinaryFormatter | |
: and then encoded with base64 encoding. | |
mimetype: application/x-microsoft.net.object.soap.base64 | |
value : The object must be serialized with | |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
: and then encoded with base64 encoding. | |
mimetype: application/x-microsoft.net.object.bytearray.base64 | |
value : The object must be serialized into a byte array | |
: using a System.ComponentModel.TypeConverter | |
: and then encoded with base64 encoding. | |
--> | |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
<xsd:element name="root" msdata:IsDataSet="true"> | |
<xsd:complexType> | |
<xsd:choice maxOccurs="unbounded"> | |
<xsd:element name="metadata"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" /> | |
<xsd:attribute name="type" type="xsd:string" /> | |
<xsd:attribute name="mimetype" type="xsd:string" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="assembly"> | |
<xsd:complexType> | |
<xsd:attribute name="alias" type="xsd:string" /> | |
<xsd:attribute name="name" type="xsd:string" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="data"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="resheader"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" use="required" /> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:choice> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:schema> | |
<resheader name="resmimetype"> | |
<value>text/microsoft-resx</value> | |
</resheader> | |
<resheader name="version"> | |
<value>2.0</value> | |
</resheader> | |
<resheader name="reader"> | |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
</resheader> | |
<resheader name="writer"> | |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
</resheader> | |
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// <auto-generated> | |
// This code was generated by a tool. | |
// Runtime Version:4.0.30319.239 | |
// | |
// Changes to this file may cause incorrect behavior and will be lost if | |
// the code is regenerated. | |
// </auto-generated> | |
//------------------------------------------------------------------------------ | |
namespace WindowsFormsApplication1.Properties | |
{ | |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.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; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |
<Profiles> | |
<Profile Name="(Default)" /> | |
</Profiles> | |
<Settings /> | |
</SettingsFile> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment