Visual Studio 2017 Form Designer failure

  • Thread starter Thread starter Festus Hagen
  • Start date Start date
F

Festus Hagen

Guest
Hi, All

Was not sure where to post this so here it is ...


Select: File:New:Project
Select: Installed:Templates:Visual C++:CLR:CLR Empty Project

Wait for it to load ... And some!

In Solution Explorer, Right Click the Project.
Select: Add:New ITem
Select: Installed:Visual C++:UI:Windows Form
Select: Add

KaBoom ... The data necessary to complete this operation is not yet availiable. (Exception from HRESULT: 0x8000000A)

From this point forward, the Designer is gone ... Restart VStudio (even OS), Re open the project and no designer.

Is there a solution.

The form .h file:

#pragma once

namespace Deleteme {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Summary for MyForm
/// </summary>
public ref class MyForm : public System::Windows::Forms::Form
{
public:
MyForm(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~MyForm()
{
if (components)
{
delete components;
}
}

private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->components = gcnew System::ComponentModel::Container();
this->Size = System::Drawing::Size(300,300);
this->Text = L"MyForm";
this->Padding = System::Windows::Forms::Padding(0);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
}
#pragma endregion
};
}

EDIT: ooPs, Sorry, forgot os: Win7

Thank you
-Enjoy
fh : )_~

Continue reading...
 
Back
Top