Hi i'm pretty new to c++, but i've been programming in java for a while, i've tried to do a simple drag and drop program that when a file is dropped in the main screen it gets the file path and write it in a TextBox, but i doesn't work, when i drag a file from windows to the main window an stop icon appears and i can't proceed. I've set drop enable and all the rest.
//
// MainScreen
//
this->AllowDrop = true;
resources->ApplyResources(this, L"$this");
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->Controls->Add(this->btn_search);
this->Controls->Add(this->txt_fileURL);
this->Controls->Add(this->btn_delete);
this->HelpButton = true;
this->Name = L"MainScreen";
this->Load += gcnew System::EventHandler(this, &MainScreen::MainScreen_Load);
this->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &MainScreen::MainScreen_DragDrop);
this->DragEnter += gcnew System::Windows::Forms::DragEventHandler(this, &MainScreen::MainScreen_DragEnter);
this->DragOver += gcnew System::Windows::Forms::DragEventHandler(this, &MainScreen::MainScreen_DragOver);
this->ResumeLayout(false);
this->PerformLayout();