Click here to Skip to main content
15,893,337 members
Home / Discussions / C#
   

C#

 
GeneralRe: TableAdapter.Update() problem. Pin
hdv21219-Jun-08 6:53
hdv21219-Jun-08 6:53 
QuestionConverting DOC files to PDF using C# Pin
Renukapadhamanaban12-Jun-08 2:10
Renukapadhamanaban12-Jun-08 2:10 
AnswerRe: Converting DOC files to PDF using C# -DUPLICATE POST Pin
Ashfield12-Jun-08 3:44
Ashfield12-Jun-08 3:44 
QuestionMulti threading, Timers Pin
koleraba12-Jun-08 1:52
koleraba12-Jun-08 1:52 
AnswerRe: Multi threading, Timers Pin
Jimmanuel12-Jun-08 2:59
Jimmanuel12-Jun-08 2:59 
GeneralRe: Multi threading, Timers Pin
koleraba12-Jun-08 4:42
koleraba12-Jun-08 4:42 
GeneralRe: Multi threading, Timers Pin
Jimmanuel12-Jun-08 5:09
Jimmanuel12-Jun-08 5:09 
GeneralRe: Multi threading, Timers Pin
koleraba13-Jun-08 8:18
koleraba13-Jun-08 8:18 
I guess invoke would work, but my class does not derive from control, so it does not have Invoke or BeginInvoke functions. Here is a simplified example of my class.

public class SomeClass
{
private Thread _workingThread;
public EventHandler SomeEvent;

public SomeClass()
{
_workingThread = new Thread(new ThreadStart(this.checkForCondition));
_workingThread.Start();
}

private void checkForCondition()
{
if(/*Check if condition is met*/)
{
onSomeEvent();
}
System.Threading.Thread.Sleep(5000);
}

private void onSomeEvent()
{
if (SomeEvent != null)
{
SomeEvent(this, new EventArgs());
}
}
}

Uros
GeneralRe: Multi threading, Timers Pin
Jimmanuel13-Jun-08 8:40
Jimmanuel13-Jun-08 8:40 
QuestionCrystall report Pin
mikobi12-Jun-08 1:19
mikobi12-Jun-08 1:19 
AnswerRe: Crystall report Pin
Harvey Saayman12-Jun-08 2:09
Harvey Saayman12-Jun-08 2:09 
GeneralRe: Crystall report Pin
mikobi12-Jun-08 3:35
mikobi12-Jun-08 3:35 
GeneralRe: Crystall report Pin
Harvey Saayman12-Jun-08 3:41
Harvey Saayman12-Jun-08 3:41 
Questioncreating handle to ToolStripButton [modified] Pin
t4ure4n12-Jun-08 0:53
t4ure4n12-Jun-08 0:53 
AnswerRe: creating handle to ToolStripButton Pin
leppie12-Jun-08 1:14
leppie12-Jun-08 1:14 
GeneralRe: creating handle to ToolStripButton Pin
t4ure4n12-Jun-08 1:20
t4ure4n12-Jun-08 1:20 
QuestionSilverlight and C# Express Pin
hairy_hats12-Jun-08 0:42
hairy_hats12-Jun-08 0:42 
AnswerRe: Silverlight and C# Express Pin
leppie12-Jun-08 1:12
leppie12-Jun-08 1:12 
GeneralRe: Silverlight and C# Express Pin
hairy_hats12-Jun-08 1:39
hairy_hats12-Jun-08 1:39 
Questionusing HTTP protocol in client server application using C# Pin
RameshwerE12-Jun-08 0:34
RameshwerE12-Jun-08 0:34 
AnswerRe: using HTTP protocol in client server application using C# Pin
leppie12-Jun-08 1:15
leppie12-Jun-08 1:15 
QuestionGenerating Crystal Reports Dynamically Pin
chanzeb12-Jun-08 0:22
chanzeb12-Jun-08 0:22 
AnswerRe: Generating Crystal Reports Dynamically Pin
Harvey Saayman12-Jun-08 2:36
Harvey Saayman12-Jun-08 2:36 
QuestionHOw to read .DTD file programmatically? Pin
Affan Toor11-Jun-08 23:59
Affan Toor11-Jun-08 23:59 
AnswerRe: HOw to read .DTD file programmatically? Pin
leppie12-Jun-08 0:20
leppie12-Jun-08 0: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.