Click here to Skip to main content
15,558,828 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 13:36
professionalMycroft Holmes27-Apr-22 13:36 
GeneralRe: How to call some Web API inside another Web API within same Project Pin
Wahaj Khan27-Apr-22 14:33
Wahaj Khan27-Apr-22 14:33 
GeneralRe: How to call some Web API inside another Web API within same Project Pin
Pete O'Hanlon29-Apr-22 1:34
mvaPete O'Hanlon29-Apr-22 1:34 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
Richard Deeming27-Apr-22 22:16
mveRichard Deeming27-Apr-22 22:16 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
jschell8-May-22 8:47
jschell8-May-22 8:47 
QuestionConsole App that refer an external dll Pin
Skeletro 3M15-Apr-22 1:12
Skeletro 3M15-Apr-22 1:12 
AnswerRe: Console App that refer an external dll Pin
Bohdan Stupak27-Jul-22 0:55
professionalBohdan Stupak27-Jul-22 0:55 
QuestionBackgroundWorker [closed] Pin
hshan_7-Apr-22 9:30
hshan_7-Apr-22 9: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 22:30
mveRichard Deeming7-Apr-22 22:30 
GeneralRe: BackgroundWorker Pin
hshan_10-Apr-22 6:29
hshan_10-Apr-22 6:29 
GeneralRe: BackgroundWorker Pin
Richard Deeming18-Apr-22 22:42
mveRichard Deeming18-Apr-22 22:42 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 3:38
hshan_19-Apr-22 3:38 
GeneralRe: BackgroundWorker Pin
Richard Deeming19-Apr-22 4:01
mveRichard Deeming19-Apr-22 4:01 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 4:22
hshan_19-Apr-22 4:22 
GeneralRe: BackgroundWorker Pin
Richard Deeming19-Apr-22 4:50
mveRichard Deeming19-Apr-22 4:50 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 7:39
hshan_19-Apr-22 7:39 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 3:55
hshan_19-Apr-22 3:55 
QuestionCan not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 5:23
Alex Banar1-Apr-22 5:23 
AnswerRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 5:38
mveRichard MacCutchan1-Apr-22 5:38 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 5:42
Alex Banar1-Apr-22 5:42 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 6:44
mveRichard MacCutchan1-Apr-22 6:44 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 7:22
Alex Banar1-Apr-22 7:22 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 7:28
mveRichard MacCutchan1-Apr-22 7:28 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 7:49
Alex Banar1-Apr-22 7:49 
Questionrunning Powershell from ASP.NET Core 6 Pin
Johannes B. Latzel18-Mar-22 3:20
Johannes B. Latzel18-Mar-22 3: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.