Click here to Skip to main content
15,887,338 members
Home / Discussions / C#
   

C#

 
Questionhow to draw a X coordinate with a series of datetime data? Pin
Member 185560810-Feb-04 3:22
Member 185560810-Feb-04 3:22 
AnswerRe: how to draw a X coordinate with a series of datetime data? Pin
Alex Korchemniy10-Feb-04 7:20
Alex Korchemniy10-Feb-04 7:20 
Generalinteract 2 way Pin
Blue_Aqua10-Feb-04 3:14
Blue_Aqua10-Feb-04 3:14 
GeneralRe: interact 2 way Pin
Heath Stewart10-Feb-04 11:10
protectorHeath Stewart10-Feb-04 11:10 
GeneralRe: interact 2 way Pin
Blue_Aqua10-Feb-04 18:23
Blue_Aqua10-Feb-04 18:23 
GeneralMultyThreading in C#: Communication between threads Pin
Jasper4C#10-Feb-04 2:46
Jasper4C#10-Feb-04 2:46 
GeneralRe: MultyThreading in C#: Communication between threads Pin
Marc Clifton10-Feb-04 4:17
mvaMarc Clifton10-Feb-04 4:17 
GeneralRe: MultyThreading in C#: Communication between threads Pin
Jasper4C#10-Feb-04 12:08
Jasper4C#10-Feb-04 12:08 
10x for information but what I mean was - for example:

--------------------------------------------------------
using .... ; //doesn't matter

namespace DllClass
{
public class ClassA
{
private string m_message;

public ClassA()
{
//Empty constr (??)
}

public void ThreadEntrancePoint()
{
//This method will be called when creating
//a new thread

//TODO: Should I put here infinity loop ???
}


//This method will chande variable in this class
public string SetMessage
{
set
{ if (value != null) m_message = value; }
}
}
} // End of DLL file

---------------------------------------------------------
using ....; //All the other
using System.Threading;
using DllClass; //need to create class

namespace MyFormNameSpace
{
public class MyForm: Windows.Form
{
public int Main (...)
{
//Doesn't matter for now
}

//This function will be called when user want's
//to create a new thread
public void btn_CreateThread(...)
{
Thread t = new Thread (new ThreadStart DllClass.ClassA.ThreadEntrancePoint);
t.Start();
}

//This function will be called when user want
//to send a new messge to the class that inside
//thread

public void SendNewMessageToThread (string msg)
{
//TODO: What code should I put here to send
//message to ClassA.SetMessage ??
}

}//class close
}//namespace close
---------------------------------------------------------

You see - in this example I want to completly run ClassA in new thread and also pass some variables to this class and may be receive some inforamtion from it. How I can do that ?

"I have not failed.
I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
GeneralRe: MultyThreading in C#: Communication between threads Pin
Marc Clifton10-Feb-04 13:38
mvaMarc Clifton10-Feb-04 13:38 
GeneralBackground compile in C# Pin
mufoxe10-Feb-04 2:24
mufoxe10-Feb-04 2:24 
GeneralRemoting, Events, Interfaces and Assemblies Pin
CyberHawke10-Feb-04 1:35
CyberHawke10-Feb-04 1:35 
GeneralRe: Remoting, Events, Interfaces and Assemblies Pin
Marc Clifton10-Feb-04 1:45
mvaMarc Clifton10-Feb-04 1:45 
GeneralReport Designer Pin
Itanium9-Feb-04 19:56
Itanium9-Feb-04 19:56 
GeneralRe: Report Designer Pin
Marc Clifton10-Feb-04 1:47
mvaMarc Clifton10-Feb-04 1:47 
GeneralRe: Report Designer Pin
Roger Alsing10-Feb-04 2:44
Roger Alsing10-Feb-04 2:44 
GeneralRe: Report Designer Pin
Marc Clifton10-Feb-04 3:50
mvaMarc Clifton10-Feb-04 3:50 
GeneralRe: Report Designer Pin
Itanium10-Feb-04 20:22
Itanium10-Feb-04 20:22 
GeneralTranslating from Delphi to C# - problem with objects. Pin
Andres Coder9-Feb-04 17:48
Andres Coder9-Feb-04 17:48 
GeneralRe: Translating from Delphi to C# - problem with objects. Pin
John Kuhn9-Feb-04 19:16
John Kuhn9-Feb-04 19:16 
GeneralRe: Translating from Delphi to C# - problem with objects. Pin
Andres Coder10-Feb-04 2:45
Andres Coder10-Feb-04 2:45 
GeneralRe: Translating from Delphi to C# - problem with objects. Pin
John Kuhn10-Feb-04 10:45
John Kuhn10-Feb-04 10:45 
GeneralCharacter array Pin
GetOn&GetGoing9-Feb-04 17:44
GetOn&GetGoing9-Feb-04 17:44 
GeneralRe: Character array Pin
Nick Parker9-Feb-04 18:28
protectorNick Parker9-Feb-04 18:28 
GeneralRe: Character array Pin
Marc Clifton10-Feb-04 1:49
mvaMarc Clifton10-Feb-04 1:49 
GeneralConversion from string to integer Pin
GetOn&GetGoing9-Feb-04 17:00
GetOn&GetGoing9-Feb-04 17:00 

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.