⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.h

📁 Visual C++ 2005的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once


namespace Ex22_03 {

	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 Form1
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
      dataGridView->AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode::AllCells;
      dataGridView->AutoResizeColumnHeadersHeight();
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
  private: System::Windows::Forms::DataGridView^  dataGridView;
  private: Ex22_03::Customers^  Customers;
  private: System::Windows::Forms::BindingSource^  customersBindingSource;
  private: Ex22_03::CustomersTableAdapters::CustomersTableAdapter^  CustomersTableAdapter;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  customerIDDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  companyNameDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  contactNameDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  contactTitleDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  addressDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  cityDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  regionDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  postalCodeDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  countryDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  phoneDataGridViewTextBoxColumn;
  private: System::Windows::Forms::DataGridViewTextBoxColumn^  faxDataGridViewTextBoxColumn;
  private: System::Windows::Forms::BindingNavigator^  bindingNavigator1;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorAddNewItem;
  private: System::Windows::Forms::ToolStripLabel^  bindingNavigatorCountItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorDeleteItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveFirstItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMovePreviousItem;
  private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator;
  private: System::Windows::Forms::ToolStripTextBox^  bindingNavigatorPositionItem;
  private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator1;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveNextItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveLastItem;
  private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator2;
  private: System::ComponentModel::IContainer^  components;
  protected: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>


#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());
      System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
      this->dataGridView = (gcnew System::Windows::Forms::DataGridView());
      this->customerIDDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->companyNameDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->contactNameDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->contactTitleDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->addressDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->cityDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->regionDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->postalCodeDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->countryDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->phoneDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->faxDataGridViewTextBoxColumn = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
      this->customersBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
      this->Customers = (gcnew Ex22_03::Customers());
      this->CustomersTableAdapter = (gcnew Ex22_03::CustomersTableAdapters::CustomersTableAdapter());
      this->bindingNavigator1 = (gcnew System::Windows::Forms::BindingNavigator(this->components));
      this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
      this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
      this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
      this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
      this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
      this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->dataGridView))->BeginInit();
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->customersBindingSource))->BeginInit();
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Customers))->BeginInit();
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->bindingNavigator1))->BeginInit();
      this->bindingNavigator1->SuspendLayout();
      this->SuspendLayout();
      // 
      // dataGridView
      // 
      this->dataGridView->AutoGenerateColumns = false;
      this->dataGridView->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
      this->dataGridView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^  >(11) {this->customerIDDataGridViewTextBoxColumn, 
        this->companyNameDataGridViewTextBoxColumn, this->contactNameDataGridViewTextBoxColumn, this->contactTitleDataGridViewTextBoxColumn, 
        this->addressDataGridViewTextBoxColumn, this->cityDataGridViewTextBoxColumn, this->regionDataGridViewTextBoxColumn, this->postalCodeDataGridViewTextBoxColumn, 
        this->countryDataGridViewTextBoxColumn, this->phoneDataGridViewTextBoxColumn, this->faxDataGridViewTextBoxColumn});
      this->dataGridView->DataSource = this->customersBindingSource;
      this->dataGridView->Dock = System::Windows::Forms::DockStyle::Fill;
      this->dataGridView->Location = System::Drawing::Point(0, 0);
      this->dataGridView->Name = L"dataGridView";
      this->dataGridView->Size = System::Drawing::Size(442, 262);
      this->dataGridView->TabIndex = 0;
      // 
      // customerIDDataGridViewTextBoxColumn
      // 
      this->customerIDDataGridViewTextBoxColumn->DataPropertyName = L"CustomerID";
      this->customerIDDataGridViewTextBoxColumn->HeaderText = L"CustomerID";
      this->customerIDDataGridViewTextBoxColumn->Name = L"customerIDDataGridViewTextBoxColumn";
      // 
      // companyNameDataGridViewTextBoxColumn
      // 
      this->companyNameDataGridViewTextBoxColumn->DataPropertyName = L"CompanyName";
      this->companyNameDataGridViewTextBoxColumn->HeaderText = L"CompanyName";
      this->companyNameDataGridViewTextBoxColumn->Name = L"companyNameDataGridViewTextBoxColumn";
      // 
      // contactNameDataGridViewTextBoxColumn
      // 
      this->contactNameDataGridViewTextBoxColumn->DataPropertyName = L"ContactName";
      this->contactNameDataGridViewTextBoxColumn->HeaderText = L"ContactName";
      this->contactNameDataGridViewTextBoxColumn->Name = L"contactNameDataGridViewTextBoxColumn";
      // 
      // contactTitleDataGridViewTextBoxColumn
      // 
      this->contactTitleDataGridViewTextBoxColumn->DataPropertyName = L"ContactTitle";
      this->contactTitleDataGridViewTextBoxColumn->HeaderText = L"ContactTitle";
      this->contactTitleDataGridViewTextBoxColumn->Name = L"contactTitleDataGridViewTextBoxColumn";
      // 
      // addressDataGridViewTextBoxColumn
      // 
      this->addressDataGridViewTextBoxColumn->DataPropertyName = L"Address";
      this->addressDataGridViewTextBoxColumn->HeaderText = L"Address";
      this->addressDataGridViewTextBoxColumn->Name = L"addressDataGridViewTextBoxColumn";
      // 
      // cityDataGridViewTextBoxColumn
      // 
      this->cityDataGridViewTextBoxColumn->DataPropertyName = L"City";
      this->cityDataGridViewTextBoxColumn->HeaderText = L"City";
      this->cityDataGridViewTextBoxColumn->Name = L"cityDataGridViewTextBoxColumn";
      // 
      // regionDataGridViewTextBoxColumn
      // 
      this->regionDataGridViewTextBoxColumn->DataPropertyName = L"Region";
      this->regionDataGridViewTextBoxColumn->HeaderText = L"Region";
      this->regionDataGridViewTextBoxColumn->Name = L"regionDataGridViewTextBoxColumn";
      // 
      // postalCodeDataGridViewTextBoxColumn
      // 
      this->postalCodeDataGridViewTextBoxColumn->DataPropertyName = L"PostalCode";
      this->postalCodeDataGridViewTextBoxColumn->HeaderText = L"PostalCode";
      this->postalCodeDataGridViewTextBoxColumn->Name = L"postalCodeDataGridViewTextBoxColumn";
      // 
      // countryDataGridViewTextBoxColumn
      // 
      this->countryDataGridViewTextBoxColumn->DataPropertyName = L"Country";
      this->countryDataGridViewTextBoxColumn->HeaderText = L"Country";
      this->countryDataGridViewTextBoxColumn->Name = L"countryDataGridViewTextBoxColumn";
      // 
      // phoneDataGridViewTextBoxColumn

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -