![]() This->label4->Location = System::Drawing::Point( 264, 32 ) This->label3->Location = System::Drawing::Point( 24, 96 ) This->label2->Location = System::Drawing::Point( 40, 64 ) This->label1->Location = System::Drawing::Point( 56, 32 ) This->label6 = gcnew System::Windows::Forms::Label ![]() This->label5 = gcnew System::Windows::Forms::Label This->label4 = gcnew System::Windows::Forms::Label This->label3 = gcnew System::Windows::Forms::Label This->favoriteColorComboBox = gcnew System::Windows::Forms::ComboBox This->ageUpDownPicker = gcnew System::Windows::Forms::NumericUpDown This->label2 = gcnew System::Windows::Forms::Label This->label1 = gcnew System::Windows::Forms::Label This->nameTextBox1 = gcnew System::Windows::Forms::TextBox System::Windows::Forms::ErrorProvider^ favoriteColorErrorProvider System::Windows::Forms::ErrorProvider^ nameErrorProvider System::Windows::Forms::ErrorProvider^ ageErrorProvider System::Windows::Forms::ComboBox^ favoriteColorComboBox System::Windows::Forms::NumericUpDown^ ageUpDownPicker System::Windows::Forms::TextBox^ nameTextBox1 Public ref class Form1: public System::Windows::Forms::Form Metoda SetError se volá s odpovídajícím chybovým textem během události ovládacího prvku Validated nebo bez příslušné chyby v závislosti na obsahu ovládacího prvku. Příklad nastaví možnosti ikony chyby pomocí BlinkRate vlastností a BlinkStyle SetIconAlignment metod a SetIconPadding metod. Tento příklad vytvoří Form ovládací prvek, NumericUpDown ovládací prvek a ComboBox ovládací prvek, přičemž každý ověří jeho obsah a ErrorProvider pro TextBox každý ovládací prvek. Následující příklad kódu ukazuje použití ErrorProvider třídy k upozorňovat uživatele na chybu zadávání dat. IExtenderProvider ISupportInitialize Příklady ![]() Implements IExtenderProvider, ISupportInitialize Dědičnost Implements IExtenderProvider Public Class ErrorProvider Interface ISupportInitialize Public Class ErrorProvider Public class ErrorProvider :, , type ErrorProvider = class V tomto článku public ref class ErrorProvider : System::ComponentModel::Component, System::ComponentModel::IExtenderProvider public ref class ErrorProvider : System::ComponentModel::Component, System::ComponentModel::IExtenderProvider, System::ComponentModel::ISupportInitialize public class ErrorProvider :, Poskytuje uživatelské rozhraní pro označení, že ovládací prvek ve formuláři má přidruženou chybu.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |