Click here to Skip to main content
15,911,896 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to construct a formula based on user's input? Pin
Luc Pattyn20-Jan-07 13:40
sitebuilderLuc Pattyn20-Jan-07 13:40 
GeneralRe: how to construct a formula based on user's input? Pin
michal.kreslik20-Jan-07 13:56
michal.kreslik20-Jan-07 13:56 
Question'preg_replace();' in c#? Pin
NZSmartie20-Jan-07 13:06
NZSmartie20-Jan-07 13:06 
AnswerRe: 'preg_replace();' in c#? Pin
Ed.Poore20-Jan-07 13:10
Ed.Poore20-Jan-07 13:10 
AnswerRe: 'preg_replace();' in c#? Pin
Ravi Bhavnani20-Jan-07 13:12
professionalRavi Bhavnani20-Jan-07 13:12 
QuestionscaleX & scaleY Pin
hamadam2120-Jan-07 11:42
hamadam2120-Jan-07 11:42 
AnswerRe: scaleX & scaleY Pin
Christian Graus20-Jan-07 14:37
protectorChristian Graus20-Jan-07 14:37 
QuestionThread Problem Again. Pin
Eddymvp20-Jan-07 11:34
Eddymvp20-Jan-07 11:34 
I have a windows application with two button and one textarea. the button are start and stop. When I press start I want the program to execute a method x amount of times until I press the stop button. I'm displaying and increment number in the text area and when I run the program it doesn't display anything and it just hands there and I can't click the stop button. How can i fix this and get it to work?

<br />
private void startBtn_Click(object sender, System.EventArgs e)<br />
		{<br />
			// change enabled - disabled button<br />
			stopBtn.Enabled = true;<br />
			startBtn.Enabled = false;<br />
			StartService();<br />
<br />
		}<br />
<br />
		private void stopBtn_Click(object sender, System.EventArgs e)<br />
		{<br />
			// change enabled - disabled button<br />
			startBtn.Enabled = true;<br />
			stopBtn.Enabled = false;<br />
                        StopService();<br />
<br />
		}<br />
<br />
		public void StartService()<br />
		{<br />
			int counter =1;<br />
			while (start)<br />
			{<br />
				status.Text += counter +" test \n";				<br />
			<br />
			counter++;<br />
			Thread.Sleep(5000);<br />
			}<br />
<br />
		}<br />
		public void StopService()<br />
		{<br />
			start = false;<br />
		}<br />
	<br />

AnswerRe: Thread Problem Again. Pin
Luc Pattyn20-Jan-07 12:16
sitebuilderLuc Pattyn20-Jan-07 12:16 
GeneralRe: Thread Problem Again. Pin
Eddymvp20-Jan-07 12:27
Eddymvp20-Jan-07 12:27 
GeneralRe: Thread Problem Again. Pin
Luc Pattyn20-Jan-07 13:31
sitebuilderLuc Pattyn20-Jan-07 13:31 
GeneralRe: Thread Problem Again. Pin
Eddymvp20-Jan-07 13:43
Eddymvp20-Jan-07 13:43 
Questionhow to read/write XML simple ? Pin
hdv21220-Jan-07 11:26
hdv21220-Jan-07 11:26 
AnswerRe: how to read/write XML simple ? Pin
Stefan Troschuetz20-Jan-07 11:31
Stefan Troschuetz20-Jan-07 11:31 
AnswerRe: how to read/write XML simple ? Pin
Seishin#21-Jan-07 20:52
Seishin#21-Jan-07 20:52 
QuestionSpeech Pin
Mr.Sam20-Jan-07 10:25
Mr.Sam20-Jan-07 10:25 
QuestionNeed help! Pin
Frankww20-Jan-07 9:54
Frankww20-Jan-07 9:54 
AnswerRe: Need help! Pin
Christian Graus20-Jan-07 10:13
protectorChristian Graus20-Jan-07 10:13 
AnswerRe: Need help! Pin
Frankww20-Jan-07 10:36
Frankww20-Jan-07 10:36 
GeneralRe: Need help! Pin
Christian Graus20-Jan-07 10:44
protectorChristian Graus20-Jan-07 10:44 
AnswerRe: Need help! Pin
Ravi Bhavnani20-Jan-07 13:15
professionalRavi Bhavnani20-Jan-07 13:15 
AnswerRe: Need help! Pin
Frankww20-Jan-07 13:37
Frankww20-Jan-07 13:37 
GeneralRe: Need help! Pin
Ravi Bhavnani20-Jan-07 13:46
professionalRavi Bhavnani20-Jan-07 13:46 
GeneralRe: Need help! Pin
Frankww20-Jan-07 14:21
Frankww20-Jan-07 14:21 
GeneralRe: Need help! Pin
Ravi Bhavnani20-Jan-07 14:25
professionalRavi Bhavnani20-Jan-07 14:25 

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.