<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Visual_C%2B%2B_.NET%2FGUI_Form%2FTextBox</id>
		<title>Visual C++ .NET/GUI Form/TextBox - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Visual_C%2B%2B_.NET%2FGUI_Form%2FTextBox"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/TextBox&amp;action=history"/>
		<updated>2026-04-29T19:35:00Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/TextBox&amp;diff=3788&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/TextBox&amp;diff=3788&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/TextBox&amp;diff=3789&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/TextBox&amp;diff=3789&amp;oldid=prev"/>
				<updated>2010-05-26T12:06:06Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Text Entry==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
  using namespace System;&lt;br /&gt;
  using namespace System::ComponentModel;&lt;br /&gt;
  using namespace System::Collections;&lt;br /&gt;
  using namespace System::Windows::Forms;&lt;br /&gt;
  using namespace System::Data;&lt;br /&gt;
  using namespace System::Drawing;&lt;br /&gt;
  public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;
  {&lt;br /&gt;
  public:&lt;br /&gt;
    Form1(void)&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
            DoB = DateTime::MinValue;&lt;br /&gt;
            // setting validating type to DateTime&lt;br /&gt;
            mtbDoB-&amp;gt;ValidatingType = DateTime::typeid;&lt;br /&gt;
    }&lt;br /&gt;
  protected:&lt;br /&gt;
        System::Windows::Forms::Button^  bnSubmit;&lt;br /&gt;
        System::Windows::Forms::Label^  label3;&lt;br /&gt;
        System::Windows::Forms::TextBox^  tbPassword;&lt;br /&gt;
        System::Windows::Forms::TextBox^  tbOutput;&lt;br /&gt;
        System::Windows::Forms::Label^  label2;&lt;br /&gt;
        System::Windows::Forms::MaskedTextBox^  mtbDoB;&lt;br /&gt;
        System::Windows::Forms::Label^  label1;&lt;br /&gt;
        System::Windows::Forms::TextBox^  tbName;&lt;br /&gt;
        DateTime^ DoB;&lt;br /&gt;
    void InitializeComponent(void)&lt;br /&gt;
    {&lt;br /&gt;
            this-&amp;gt;bnSubmit = (gcnew System::Windows::Forms::Button());&lt;br /&gt;
            this-&amp;gt;label3 = (gcnew System::Windows::Forms::Label());&lt;br /&gt;
            this-&amp;gt;tbPassword = (gcnew System::Windows::Forms::TextBox());&lt;br /&gt;
            this-&amp;gt;tbOutput = (gcnew System::Windows::Forms::TextBox());&lt;br /&gt;
            this-&amp;gt;label2 = (gcnew System::Windows::Forms::Label());&lt;br /&gt;
            this-&amp;gt;mtbDoB = (gcnew System::Windows::Forms::MaskedTextBox());&lt;br /&gt;
            this-&amp;gt;label1 = (gcnew System::Windows::Forms::Label());&lt;br /&gt;
            this-&amp;gt;tbName = (gcnew System::Windows::Forms::TextBox());&lt;br /&gt;
            this-&amp;gt;SuspendLayout();&lt;br /&gt;
            // &lt;br /&gt;
            // bnSubmit&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;Location = System::Drawing::Point(260, 36);&lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;Margin = System::Windows::Forms::Padding(1,3,3,3);&lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;Name = L&amp;quot;bnSubmit&amp;quot;;&lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;Size = System::Drawing::Size(56, 20);&lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;TabIndex = 10;&lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;Text = L&amp;quot; Submit&amp;quot;;&lt;br /&gt;
            this-&amp;gt;bnSubmit-&amp;gt;Click += &lt;br /&gt;
                gcnew System::EventHandler(this, &amp;amp;Form1::bnSubmit_Click);&lt;br /&gt;
            // &lt;br /&gt;
            // label3&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;label3-&amp;gt;AutoSize = true;&lt;br /&gt;
            this-&amp;gt;label3-&amp;gt;Location = System::Drawing::Point(14, 232);&lt;br /&gt;
            this-&amp;gt;label3-&amp;gt;Name = L&amp;quot;label3&amp;quot;;&lt;br /&gt;
            this-&amp;gt;label3-&amp;gt;Size = System::Drawing::Size(56, 13);&lt;br /&gt;
            this-&amp;gt;label3-&amp;gt;TabIndex = 14;&lt;br /&gt;
            this-&amp;gt;label3-&amp;gt;Text = L&amp;quot;Password:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // tbPassword&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;CausesValidation = false;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;Location = System::Drawing::Point(78, 226);&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;MaxLength = 16;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;Name = L&amp;quot;tbPassword&amp;quot;;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;PasswordChar = &amp;quot;?&amp;quot;;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;Size = System::Drawing::Size(238, 20);&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;TabIndex = 13;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;UseSystemPasswordChar = true;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;WordWrap = false;&lt;br /&gt;
            this-&amp;gt;tbPassword-&amp;gt;TextChanged += &lt;br /&gt;
               gcnew System::EventHandler(this,&amp;amp;Form1::tbPassword_TextChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // tbOutput&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;Location = System::Drawing::Point(14, 63);&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;Multiline = true;&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;Name = L&amp;quot;tbOutput&amp;quot;;&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;ReadOnly = true;&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;ScrollBars = &lt;br /&gt;
                System::Windows::Forms::ScrollBars::Vertical;&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;Size = System::Drawing::Size(302, 156);&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;TabIndex = 12;&lt;br /&gt;
            this-&amp;gt;tbOutput-&amp;gt;TabStop = false;&lt;br /&gt;
            // &lt;br /&gt;
            // label2&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;label2-&amp;gt;AutoSize = true;&lt;br /&gt;
            this-&amp;gt;label2-&amp;gt;Location = System::Drawing::Point(168, 15);&lt;br /&gt;
            this-&amp;gt;label2-&amp;gt;Name = L&amp;quot;label2&amp;quot;;&lt;br /&gt;
            this-&amp;gt;label2-&amp;gt;Size = System::Drawing::Size(69, 13);&lt;br /&gt;
            this-&amp;gt;label2-&amp;gt;TabIndex = 11;&lt;br /&gt;
            this-&amp;gt;label2-&amp;gt;Text = L&amp;quot;Date of Birth:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // mtbDoB&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;AllowPromptAsInput = false;&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;BeepOnError = true;&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;Location = System::Drawing::Point(168, 36);&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;Margin = System::Windows::Forms::Padding(3,3,1,3);&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;Mask = L&amp;quot;00/00/0000&amp;quot;;&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;Name = L&amp;quot;mtbDoB&amp;quot;;&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;Size = System::Drawing::Size(89, 20);&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;TabIndex = 8;&lt;br /&gt;
            this-&amp;gt;mtbDoB-&amp;gt;TypeValidationCompleted += &lt;br /&gt;
                gcnew System::Windows::Forms::TypeValidationEventHandler(this,&lt;br /&gt;
                                      &amp;amp;Form1::mtbDoB_TypeValidationCompleted);&lt;br /&gt;
            // &lt;br /&gt;
            // label1&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;label1-&amp;gt;AutoSize = true;&lt;br /&gt;
            this-&amp;gt;label1-&amp;gt;Location = System::Drawing::Point(14, 15);&lt;br /&gt;
            this-&amp;gt;label1-&amp;gt;Name = L&amp;quot;label1&amp;quot;;&lt;br /&gt;
            this-&amp;gt;label1-&amp;gt;Size = System::Drawing::Size(38, 13);&lt;br /&gt;
            this-&amp;gt;label1-&amp;gt;TabIndex = 9;&lt;br /&gt;
            this-&amp;gt;label1-&amp;gt;Text = L&amp;quot;Name:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // tbName&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;tbName-&amp;gt;Location = System::Drawing::Point(14, 36);&lt;br /&gt;
            this-&amp;gt;tbName-&amp;gt;Name = L&amp;quot;tbName&amp;quot;;&lt;br /&gt;
            this-&amp;gt;tbName-&amp;gt;Size = System::Drawing::Size(147, 20);&lt;br /&gt;
            this-&amp;gt;tbName-&amp;gt;TabIndex = 7;&lt;br /&gt;
            this-&amp;gt;tbName-&amp;gt;Validating += &lt;br /&gt;
                gcnew System::ComponentModel::CancelEventHandler(this, &lt;br /&gt;
                                                   &amp;amp;Form1::tbName_Validating);&lt;br /&gt;
            // &lt;br /&gt;
            // Form1&lt;br /&gt;
            // &lt;br /&gt;
            this-&amp;gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;
            this-&amp;gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;
            this-&amp;gt;ClientSize = System::Drawing::Size(331, 261);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;bnSubmit);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;label3);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;tbPassword);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;tbOutput);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;label2);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;mtbDoB);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;label1);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;tbName);&lt;br /&gt;
            this-&amp;gt;Name = L&amp;quot;Form1&amp;quot;;&lt;br /&gt;
            this-&amp;gt;Text = L&amp;quot;Simple entry data entry&amp;quot;;&lt;br /&gt;
            this-&amp;gt;ResumeLayout(false);&lt;br /&gt;
            this-&amp;gt;PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private: &lt;br /&gt;
        System::Void bnSubmit_Click(System::Object^ sender, System::EventArgs^ e)&lt;br /&gt;
        {&lt;br /&gt;
            if (tbName-&amp;gt;Text-&amp;gt;Length &amp;lt;= 0)          // Blank name bad!&lt;br /&gt;
                tbName-&amp;gt;Focus();&lt;br /&gt;
            else if (*DoB == DateTime::MinValue)    // Bad date bad!&lt;br /&gt;
                mtbDoB-&amp;gt;Focus();&lt;br /&gt;
            else                                    // Good!&lt;br /&gt;
            {&lt;br /&gt;
                // Concatinate name and date of birth and add to output&lt;br /&gt;
                tbOutput-&amp;gt;Text = String::Format(&amp;quot;{0} - {1}\r\n{2}&amp;quot;, &lt;br /&gt;
                    tbName-&amp;gt;Text, mtbDoB-&amp;gt;Text, tbOutput-&amp;gt;Text);&lt;br /&gt;
                tbName-&amp;gt;Clear(); &lt;br /&gt;
                mtbDoB-&amp;gt;Clear();&lt;br /&gt;
                DoB = DateTime::MinValue;&lt;br /&gt;
           }&lt;br /&gt;
        }&lt;br /&gt;
        System::Void tbPassword_TextChanged(System::Object^ sender, System::EventArgs^ e)&lt;br /&gt;
        {&lt;br /&gt;
            if (tbPassword-&amp;gt;Text-&amp;gt;Equals(&amp;quot;Editable&amp;quot;)) &lt;br /&gt;
            {&lt;br /&gt;
                tbOutput-&amp;gt;TabStop = true;&lt;br /&gt;
                tbOutput-&amp;gt;ReadOnly = false; &lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                tbOutput-&amp;gt;TabStop = false;&lt;br /&gt;
                tbOutput-&amp;gt;ReadOnly = true; &lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        System::Void mtbDoB_TypeValidationCompleted(System::Object^ sender, System::Windows::Forms::TypeValidationEventArgs^ e)&lt;br /&gt;
        {&lt;br /&gt;
            if (e-&amp;gt;IsValidInput &amp;amp;&amp;amp; &lt;br /&gt;
                (*(DateTime^)e-&amp;gt;ReturnValue) &amp;lt;= DateTime::Now)&lt;br /&gt;
            {&lt;br /&gt;
                DoB = (DateTime^)e-&amp;gt;ReturnValue;&lt;br /&gt;
                mtbDoB-&amp;gt;BackColor = SystemColors::Window;&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                mtbDoB-&amp;gt;BackColor = Color::Yellow;&lt;br /&gt;
                DoB = DateTime::MinValue;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        System::Void tbName_Validating(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e)&lt;br /&gt;
        {&lt;br /&gt;
            if (tbName-&amp;gt;Text-&amp;gt;Length &amp;lt;= 0)&lt;br /&gt;
                tbName-&amp;gt;BackColor = Color::Yellow;&lt;br /&gt;
            else&lt;br /&gt;
                tbName-&amp;gt;BackColor = SystemColors::Window;&lt;br /&gt;
        }&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
[STAThreadAttribute]&lt;br /&gt;
int main(array&amp;lt;System::String ^&amp;gt; ^args)&lt;br /&gt;
{&lt;br /&gt;
  Application::Run(gcnew Form1());&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>