title: C++ CodeDOM parser error: Line: 75, Column: 57 --- Internal Error
body: <p>I Know this question has been asked before (many times) But I can't seem to find the answer.</p>
  
  <p>I have dragged a TestBox onto the form, which generated the code in the 
  <code>void InitializeComponent(void)</code> method for me. When I add this line however:</p>
  
  <p><code>this-&gt;MyTextBox-&gt;Text = DateTime::Now.ToString();</code></p>
  
  <p>It comes up with the error in the title when I open the designer?
  My question is, why this is happening; and how to get rid of it.</p>
  
  <p>This is the entire code for the page:</p>
  
  <pre><code>#pragma once
  
  namespace Project1 {
  
  
  
      using namespace System;
      using namespace System::ComponentModel;
      using namespace System::Collections;
      using namespace System::Windows::Forms;
      using namespace System::Data;
      using namespace System::Drawing;
  
      /// &lt;summary&gt;
      /// Summary for MyForm
      /// &lt;/summary&gt;
      public ref class MyForm : public System::Windows::Forms::Form
      {
      public:
          MyForm(void)
          {
              InitializeComponent();
              //
              //TODO: Add the constructor code here
              //
          }
  
      protected:
          /// &lt;summary&gt;
          /// Clean up any resources being used.
          /// &lt;/summary&gt;
          ~MyForm()
          {
              if (components)
              {
                  delete components;
              }
          }
      private: System::Windows::Forms::Label^  label1;
      private: System::Windows::Forms::TextBox^  MyTextBox;
      protected: 
  
      protected: 
  
      private:
          /// &lt;summary&gt;
          /// Required designer variable.
          /// &lt;/summary&gt;
          System::ComponentModel::Container ^components;
  
      #pragma region Windows Form Designer generated code
  
          //MAIN METHOD FOR FORM
  
          void InitializeComponent(void)
          {
              this-&gt;label1 = (gcnew System::Windows::Forms::Label());
              this-&gt;MyTextBox = (gcnew System::Windows::Forms::TextBox());
              this-&gt;SuspendLayout();
              // 
              // label1
              // 
              this-&gt;label1-&gt;AutoSize = true;
              this-&gt;label1-&gt;Location = System::Drawing::Point(132, 123);
              this-&gt;label1-&gt;Name = L"label1";
              this-&gt;label1-&gt;Size = System::Drawing::Size(75, 13);
              this-&gt;label1-&gt;TabIndex = 0;
              this-&gt;label1-&gt;Text = L"Callum Holden";
              this-&gt;label1-&gt;Click += gcnew System::EventHandler(this, &amp;MyForm::label1_Click);
              // 
              // MyTextBox
              // 
              this-&gt;MyTextBox-&gt;Location = System::Drawing::Point(54, 183);
              this-&gt;MyTextBox-&gt;Name = L"MyTextBox";
              this-&gt;MyTextBox-&gt;Size = System::Drawing::Size(100, 20);
              this-&gt;MyTextBox-&gt;TabIndex = 1;
              this-&gt;MyTextBox-&gt;Text = L"g" + DateTime::Now.ToString();
  
  
  
              // 
              // MyForm
              // 
              this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);
              this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
              this-&gt;ClientSize = System::Drawing::Size(308, 275);
              this-&gt;Controls-&gt;Add(this-&gt;MyTextBox);
              this-&gt;Controls-&gt;Add(this-&gt;label1);
              this-&gt;Name = L"MyForm";
              this-&gt;Text = L"MyForm";
              this-&gt;ResumeLayout(false);
              this-&gt;PerformLayout();
  
          }
  
  
  #pragma endregion
  
      private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
  
               }
      };
  }
  </code></pre>
  
  <p>Thankyou for any suggestions!,</p>
  
  <p>Callum</p>