(1) The IDE
(2) The Toolbar
(3) .NET like code
generation
- #pragma
once
// form1.h : header file
//
// Form1 form
#include
"system.h"
#include
"forms.h"
namespace
WindowsApp2
{
using
namespace
bNET;
using
namespace
System;
using
namespace
System::ComponentModel;
using
namespace
System::Collections;
using
namespace
System::Windows::Forms;
using
namespace
System::Data;
using
namespace
System::Drawing;
class
Form1 : public
System::Windows::Forms::Form
{
// Construction
public:
Form1(void)
{
InitializeComponent();
}
private:
System::Windows::Forms::TextBox* textBox1;
private:
System::Windows::Forms::MainMenu* mainMenu1;
private:
System::Windows::Forms::MenuItem* menuItem1;
private:
System::Windows::Forms::Button* button1;
private:
System::Windows::Forms::CheckBox* checkBox1;
private:
System::Windows::Forms::RadioButton* radioButton1;
private:
///
<summary>
/// Required
method for Designer support - do not modify
/// the
contents of this method with the code editor.
/// </summary>
void
InitializeComponent(void)
{
//
// textBox1
//
textBox1 =
new
System::Windows::Forms::TextBox();
textBox1->TabIndex = 0;
textBox1->Name = "";
textBox1->Location =
System::Drawing::Point(56, 63);
textBox1->Size =
System::Drawing::Size(112, 49);
textBox1->Text = "textBox1";
this->Controls->Add(textBox1);
//
// mainMenu1
//
mainMenu1 =
new
System::Windows::Forms::MainMenu();
//
// menuItem1
//
menuItem1 =
new
System::Windows::Forms::MenuItem();
menuItem1->Text = "File";
menuItem1->Index = 0;
mainMenu1->MenuItems->Add(menuItem1);
//
// button1
//
button1 =
new
System::Windows::Forms::Button();
button1->TabIndex = 1;
button1->Name = "";
button1->Location =
System::Drawing::Point(56, 203);
button1->Size =
System::Drawing::Size(119, 28);
button1->Text = "button1";
this->Controls->Add(button1);
//
// Form1
//
this->Name
= "Form1";
this->Text
= "Form1";
this->Location
= System::Drawing::Point(0, 0);
this->Size
= System::Drawing::Size(300, 300);
this->Menu
= mainMenu1;
}
};
}
|
(4) 'In-place'
Menu Editor in Form
(5) Project dialog
|