Не могу понять как указать в trade.cpp на dataGridView1 в Form1.h(public ref class Form1 : public System::Windows::Forms::Form)
Код:
DataGridView^ dataGridView1;
?
ловлю
Цитата:
A first chance exception of type 'System.NullReferenceException' occurred in System.Windows.Forms.dll
An unhandled exception of type 'System.NullReferenceException' occurred in System.Windows.Forms.dll
Additional information: Ссылка на объект не указывает на экземпляр объекта.
|
наверно вот так
Цитата:
DataGridView^ dataGridView1 = gcnew DataGridView;
|
Проект во вложении
и еще вопрос ,можно ли делать так (какое оформление правильное)
было
Код:
private: System::Windows::Forms::Button^ login_button;
private: System::Windows::Forms::Button^ cancel_button;
private: System::Windows::Forms::GroupBox^ login_form;
private: System::Windows::Forms::TextBox^ textBox_password;
private: System::Windows::Forms::TextBox^ textBox_login;
делаем
Код:
private:
System::Windows::Forms::
Button^ login_button;
Button^ cancel_button;
GroupBox^ login_form;
TextBox^ textBox_password;
TextBox^ textBox_login;