Click here to Skip to main content
15,881,173 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: BackgroundWorker Pin
Richard Deeming7-Apr-22 21:30
mveRichard Deeming7-Apr-22 21:30 
GeneralRe: BackgroundWorker Pin
hshan_10-Apr-22 5:29
hshan_10-Apr-22 5:29 
GeneralRe: BackgroundWorker Pin
Richard Deeming18-Apr-22 21:42
mveRichard Deeming18-Apr-22 21:42 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 2:38
hshan_19-Apr-22 2:38 
GeneralRe: BackgroundWorker Pin
Richard Deeming19-Apr-22 3:01
mveRichard Deeming19-Apr-22 3:01 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 3:22
hshan_19-Apr-22 3:22 
GeneralRe: BackgroundWorker Pin
Richard Deeming19-Apr-22 3:50
mveRichard Deeming19-Apr-22 3:50 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 6:39
hshan_19-Apr-22 6:39 
ok everyting works


this->backgroundWorker1->DoWork += gcnew System::ComponentModel::DoWorkEventHandler(this, &f***::backgroundWorker1_DoWork);
this->backgroundWorker1->ProgressChanged += gcnew System::ComponentModel::ProgressChangedEventHandler(this, &f***::backgroundWorker1_ProgressChanged);
this->backgroundWorker1->RunWorkerCompleted += gcnew System::ComponentModel::RunWorkerCompletedEventHandler(this, &f***::backgroundWorker1_RunWorkerCompleted);

was indeed missing
private: System::Void backgroundWorker1_DoWork(System::Object^ sender, System::ComponentModel::DoWorkEventArgs^ e) {
	
	while (true)
	{
		if (backgroundWorker1->CancellationPending) //if it was cancelled
		{
			e->Cancel = true;
			
		}
		if (progressBar1->Value == progressBar1->Maximum)  //if the progress bar value reached maximum
Valuse==progressBar1->Maximum does not stop DoWork this "Maximum"
		{
			
		}
		Beep(1500, 100);
		backgroundWorker1->ReportProgress(50);  //reporting progress
		Sleep(500);   //wait for 1 second
	}
}

now i really got everything i needed thanks for help
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 2:55
hshan_19-Apr-22 2:55 
QuestionCan not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 4:23
Alex Banar1-Apr-22 4:23 
AnswerRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 4:38
mveRichard MacCutchan1-Apr-22 4:38 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 4:42
Alex Banar1-Apr-22 4:42 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 5:44
mveRichard MacCutchan1-Apr-22 5:44 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 6:22
Alex Banar1-Apr-22 6:22 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 6:28
mveRichard MacCutchan1-Apr-22 6:28 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 6:49
Alex Banar1-Apr-22 6:49 
Questionrunning Powershell from ASP.NET Core 6 Pin
Johannes B. Latzel18-Mar-22 2:20
Johannes B. Latzel18-Mar-22 2:20 
AnswerRe: running Powershell from ASP.NET Core 6 Pin
Dave Kreskowiak27-Mar-22 18:17
mveDave Kreskowiak27-Mar-22 18:17 
QuestionC# TcpListener listen forever Pin
Goga Work11-Mar-22 18:42
Goga Work11-Mar-22 18:42 
AnswerRe: C# TcpListener listen forever Pin
Pete O'Hanlon11-Mar-22 20:57
mvePete O'Hanlon11-Mar-22 20:57 
QuestionPower BI Embedded : Cant doCross Filtering selecting multiple rows on a table visual pressing CTRL Pin
Member 155547063-Mar-22 17:19
Member 155547063-Mar-22 17:19 
Questionhow it works Pin
Calin Negru17-Feb-22 8:48
Calin Negru17-Feb-22 8:48 
QuestionRe: how it works Pin
Calin Negru17-Feb-22 10:41
Calin Negru17-Feb-22 10:41 
AnswerRe: how it works Pin
jschell17-Feb-22 10:44
jschell17-Feb-22 10:44 
AnswerRe: how it works Pin
Richard MacCutchan17-Feb-22 21:35
mveRichard MacCutchan17-Feb-22 21:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.