![]() This->label1->Location = System::Drawing::Point( 24, 80 ) This->label2->Location = System::Drawing::Point( 24, 16 ) This->label3 = gcnew System::Windows::Forms::Label This->cursorEventViewer = gcnew System::Windows::Forms::ListView This->label2 = gcnew System::Windows::Forms::Label This->label1 = gcnew System::Windows::Forms::Label This->testPanel = gcnew System::Windows::Forms::Panel This->cursorSelectionComboBox = gcnew System::Windows::Forms::ComboBox System::Windows::Forms::ListView^ cursorEventViewer System::Windows::Forms::Panel^ testPanel System::Windows::Forms::ComboBox^ cursorSelectionComboBox Public ref class Form1: public System::Windows::Forms::Form The ListView is updated every time the Control.CursorChanged event occurs. When the user selects a mouse cursor in the ComboBox, the Control.Cursor property is set to the selected cursor, which updates the cursor for the Panel. ![]() The ComboBox contains all cursors provided by the Cursors class. The example creates a form that contains a ComboBox control, a Panel control, and a ListView control. The following example demonstrates changing the mouse cursor using the Control.Cursor property, the Cursor class, and the Cursors class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |