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

.NET (Core and Framework)

 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
Mycroft Holmes27-Apr-22 12:36
professionalMycroft Holmes27-Apr-22 12:36 
GeneralRe: How to call some Web API inside another Web API within same Project Pin
Wahaj Khan27-Apr-22 13:33
Wahaj Khan27-Apr-22 13:33 
GeneralRe: How to call some Web API inside another Web API within same Project Pin
Pete O'Hanlon29-Apr-22 0:34
subeditorPete O'Hanlon29-Apr-22 0:34 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
Richard Deeming27-Apr-22 21:16
mveRichard Deeming27-Apr-22 21:16 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
jschell8-May-22 7:47
jschell8-May-22 7:47 
QuestionConsole App that refer an external dll Pin
Skeletro 3M15-Apr-22 0:12
Skeletro 3M15-Apr-22 0:12 
AnswerRe: Console App that refer an external dll Pin
Bohdan Stupak26-Jul-22 23:55
professionalBohdan Stupak26-Jul-22 23:55 
QuestionBackgroundWorker [closed] Pin
hshan_7-Apr-22 8:30
hshan_7-Apr-22 8:30 
i'm trying to update label named "timer" with values from my prank function

#pragma endregion
	void prank()
	{
		Beep(1500, 200);
		for(i=10;i>=0;i--)
		{
			Sleep(500);
			this->timer->Text =i+"";
			Beep(1500, 200);
		}
	}
	private: System::Void joke_Load(System::Object ^ sender, System::EventArgs ^ e) {
		TopMost = true;	
		backgroundWorker1->RunWorkerAsync(1);
	}
	private: System::Void button1_Click(System::Object ^ sender, System::EventArgs ^ e) {
		joke^ nokno = gcnew joke();
		nokno->Show();
		//
	}
	private: System::Void label1_Click(System::Object ^ sender, System::EventArgs ^ e) {
		
	}
	public: System::Void backgroundWorker1_DoWork(System::Object ^ sender, System::ComponentModel::DoWorkEventArgs ^ e) {
		prank();
	}
	public: System::Void backgroundWorker1_ProgressChanged(System::Object ^ sender, System::ComponentModel::DoWorkEventArgs ^ e)
	{
		this->timer->Text = i + "";
		Beep(1500, 200);
	}
	
private: System::Void start_Click(System::Object^ sender, System::EventArgs^ e) {
	
}


it's not supposed to be real timer or anything i just want it to happen in the background so i can make another actions.
the first Beep indicates for me that it starts but second one not really also i can't manage to use
backgroundWorker1_ProgressChanged

as you can see i have pitifully tried updating it ?traditional? way.
i'm learning to code by myself (also english so sorry Sniff | :^) ) and this is my first attempt to use background worker i could really use some suggestions and please keep them simple after all i'm simpleton?

modified 19-Apr-22 12:40pm.

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 
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 

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.