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

.NET (Core and Framework)

 
PinnedHOW TO ANSWER A QUESTION Pin
Chris Maunder16-Jul-09 3:09
cofounderChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question Pin
Chris Maunder16-Jul-09 3:05
cofounderChris Maunder16-Jul-09 3:05 
QuestionAsp.net display numbers from loop on page Pin
KingRoyaltea7-Jun-22 2:24
MemberKingRoyaltea7-Jun-22 2:24 
Rant[REPOST] Asp.net display numbers from loop on page Pin
Richard Deeming7-Jun-22 3:16
mveRichard Deeming7-Jun-22 3:16 
QuestionAsp.net display numbers from loop on page Pin
KingRoyaltea6-Jun-22 4:12
MemberKingRoyaltea6-Jun-22 4:12 
AnswerRe: Asp.net display numbers from loop on page Pin
Richard MacCutchan6-Jun-22 4:21
mveRichard MacCutchan6-Jun-22 4:21 
AnswerRe: Asp.net display numbers from loop on page Pin
Dave Kreskowiak7-Jun-22 7:47
mveDave Kreskowiak7-Jun-22 7:47 
Question.NET SDK that provides side by side comparison and navigation in document pages Pin
Member 1564342420-May-22 2:57
MemberMember 1564342420-May-22 2:57 
AnswerRe: .NET SDK that provides side by side comparison and navigation in document pages Pin
Dave Kreskowiak21-May-22 6:04
mveDave Kreskowiak21-May-22 6:04 
QuestionHow to call some Web API inside another Web API within same Project Pin
Wahaj Khan27-Apr-22 10:35
MemberWahaj Khan27-Apr-22 10:35 
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
MemberWahaj 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
mvaPete 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
Memberjschell8-May-22 7:47 
QuestionConsole App that refer an external dll Pin
Skeletro 3M15-Apr-22 0:12
MemberSkeletro 3M15-Apr-22 0:12 
QuestionBackgroundWorker [closed] Pin
hshan_7-Apr-22 8:30
Memberhshan_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
Memberhshan_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
Memberhshan_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
Memberhshan_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
Memberhshan_19-Apr-22 6:39 

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.