#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Diagnostics;
namespace ProgettoStageReal {
public ref class ThreadExample
{
System::Windows::Forms::Label^ label2;
public:
ThreadExample(System::Windows::Forms::Label^ l2)
{
label2=l2;
}
// The ThreadProc method is called when the thread starts.
// It loops ten times, writing to the console and yielding
// the rest of its time slice each time, and then ends.
void DoWork()
{
//ProgettoStageReal::Form1 ale= data;
label2->Text="ok";
}
};
}