Alright, I think I understand most of what to do but the problem I am having is checking for the MouseUp event while in the MouseDown event... Maybe.
For example what I had in the MouseDown event:
What I want to happen is rather than have the if statement I would prefer to have a while statement that will execute the code until the MouseUp event occurs. That is the part I don't understand, checking to see if the MouseUp event has occurred while in the MouseDown even.
private: System::Void button3_MouseDown(System::Object * sender, System::Windows::Forms::MouseEventArgs * e)
std::string ret(static_cast<const char *>(static_cast<void *>(ptr)));
int i = atoi(ret.c_str ());
if(e->Button == MouseButtons::Left)
if (i < 180)
char buffer ;
label5->Text = itoa (i, buffer,10);
Either that or I am going about this the completely wrong way.