Click here to Skip to main content
15,917,618 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to display a page of text on a tabpage? Pin
Stefan Troschuetz18-May-06 21:16
Stefan Troschuetz18-May-06 21:16 
QuestionHow I can receive text message of yahoo messenger in C#? Pin
WindOpen18-May-06 18:07
WindOpen18-May-06 18:07 
QuestionRegistration code generator Pin
JacquesDP18-May-06 18:00
JacquesDP18-May-06 18:00 
QuestionHow to make DataGrid (Right to left) Pin
alokabasha18-May-06 17:19
alokabasha18-May-06 17:19 
AnswerRe: How to make DataGrid (Right to left) Pin
led mike18-May-06 18:15
led mike18-May-06 18:15 
GeneralRe: How to make DataGrid (Right to left) Pin
alokabasha20-May-06 5:45
alokabasha20-May-06 5:45 
QuestionC# 2.0 TreeView and ToolTips Pin
kselman18-May-06 16:51
kselman18-May-06 16:51 
QuestionProblem with aborted thread.. Pin
ALQallaf18-May-06 15:17
ALQallaf18-May-06 15:17 
AnswerRe: Problem with aborted thread.. Pin
leppie18-May-06 16:45
leppie18-May-06 16:45 
AnswerRe: Problem with aborted thread.. Pin
S. Senthil Kumar18-May-06 23:04
S. Senthil Kumar18-May-06 23:04 
AnswerRe: Problem with aborted thread.. Pin
ALQallaf19-May-06 1:43
ALQallaf19-May-06 1:43 
QuestionSimulating Mouse Events Pin
SamKemp18-May-06 13:56
SamKemp18-May-06 13:56 
AnswerRe: Simulating Mouse Events Pin
rah_sin18-May-06 18:49
professionalrah_sin18-May-06 18:49 
QuestionComputer name from user name Pin
Elvis_Pretzelator18-May-06 12:50
Elvis_Pretzelator18-May-06 12:50 
QuestionCatching Exceptions across thread boundaries Pin
nicknotyet18-May-06 11:33
nicknotyet18-May-06 11:33 
AnswerRe: Catching Exceptions across thread boundaries Pin
Rei Miyasaka18-May-06 11:49
Rei Miyasaka18-May-06 11:49 
AnswerRe: Catching Exceptions across thread boundaries Pin
Michael Dunn18-May-06 13:29
sitebuilderMichael Dunn18-May-06 13:29 
AnswerRe: Catching Exceptions across thread boundaries Pin
S. Senthil Kumar18-May-06 23:07
S. Senthil Kumar18-May-06 23:07 
GeneralRe: Catching Exceptions across thread boundaries Pin
nicknotyet19-May-06 8:58
nicknotyet19-May-06 8:58 
Questiontransferring data between forms Pin
TheJudeDude18-May-06 11:27
TheJudeDude18-May-06 11:27 
AnswerRe: transferring data between forms Pin
Rei Miyasaka18-May-06 11:40
Rei Miyasaka18-May-06 11:40 
GeneralRe: transferring data between forms Pin
TheJudeDude18-May-06 11:57
TheJudeDude18-May-06 11:57 
AnswerRe: transferring data between forms Pin
Colin Angus Mackay18-May-06 12:31
Colin Angus Mackay18-May-06 12:31 
AnswerRe: transferring data between forms Pin
stancrm18-May-06 20:35
stancrm18-May-06 20:35 
If you want to do it with the "right" way, see this example:
public class DataClass
{
	private string myData = "";

	public string MyData
	{
		get { return this.myData; }
		set { this.myData = value; }
	}
}

public class FormA : Form
{
	private DataClass dataClass = null;
	public FormA(DataClass dataClass)
	{
		this.dataClass = dataClass;
	}
}

public class FormB : Form
{
	private DataClass dataClass = null;
	public FormB(DataClass dataClass)
	{
		this.dataClass = dataClass;			
	}
}

public class Main
{
	private DataClass dataClass = new DataClass();
	private FormA forma = null;
	private FormB formb = null;
	
	public Main()
	{
		this.dataClass.MyData = "Hello World";

		this.forma = new FormA(this.dataClass);
		this.formb = new FormB(this.dataClass);
	}
}

QuestionHow to add node in DevExpress.XtraTreeList Pin
Dima Filipiuk18-May-06 11:06
Dima Filipiuk18-May-06 11:06 

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.