Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
Questionmessage formatter Pin
mikenater13-Sep-05 14:02
mikenater13-Sep-05 14:02 
AnswerRe: message formatter Pin
Mohamad Al Husseiny13-Sep-05 14:07
Mohamad Al Husseiny13-Sep-05 14:07 
GeneralRe: message formatter Pin
mikenater22-Sep-05 17:35
mikenater22-Sep-05 17:35 
QuestionTaking over another window Pin
Member 239309213-Sep-05 13:11
Member 239309213-Sep-05 13:11 
AnswerRe: Taking over another window Pin
Mohamad Al Husseiny13-Sep-05 14:04
Mohamad Al Husseiny13-Sep-05 14:04 
QuestionSingle Instance Form? Pin
MrR_13-Sep-05 11:16
MrR_13-Sep-05 11:16 
AnswerRe: Single Instance Form? Pin
QuietKnight13-Sep-05 11:27
QuietKnight13-Sep-05 11:27 
AnswerRe: Single Instance Form? Pin
Mohamad Al Husseiny13-Sep-05 11:51
Mohamad Al Husseiny13-Sep-05 11:51 
May this help
public class SingletonForm : System.Windows.Forms.Form
{
private System.ComponentModel.Container components = null;
private static SingletonForm formInstance;
public SingletonForm()
{
	InitializeComponent();
}
public static SingletonForm GetInstance()
{
	if(formInstance!=null)
		return formInstance;
	else
		return (formInstance =new SingletonForm());

}

protected override void Dispose( bool disposing )
{
	if( disposing )
	{
		if(components != null)
		{
			components.Dispose();
		}
		
	}
	base.Dispose( disposing );
}


private void InitializeComponent()
{
	this.components = new System.ComponentModel.Container();
	this.Size = new System.Drawing.Size(300,300);
	this.Text = "SingletonForm";
}

protected override void OnClosing(CancelEventArgs e)
{
	e.Cancel=true;
	this.Hide();
}
}

look at Singleton Pattern[^]

MCAD
GeneralRe: Single Instance Form? Pin
MrR_13-Sep-05 12:17
MrR_13-Sep-05 12:17 
QuestionGrab Text From Other Window Pin
Afief13-Sep-05 11:06
Afief13-Sep-05 11:06 
AnswerRe: Grab Text From Other Window Pin
Mohamad Al Husseiny13-Sep-05 16:28
Mohamad Al Husseiny13-Sep-05 16:28 
GeneralRe: Grab Text From Other Window Pin
Afief13-Sep-05 19:39
Afief13-Sep-05 19:39 
Questionhow export datagrid to excell Pin
ashish2001mca13-Sep-05 10:48
ashish2001mca13-Sep-05 10:48 
AnswerRe: how export datagrid to excell Pin
Mohamad Al Husseiny13-Sep-05 11:17
Mohamad Al Husseiny13-Sep-05 11:17 
QuestionI want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
shanzy13-Sep-05 10:30
shanzy13-Sep-05 10:30 
AnswerRe: I want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
QuietKnight13-Sep-05 11:11
QuietKnight13-Sep-05 11:11 
GeneralRe: I want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
shanzy13-Sep-05 19:02
shanzy13-Sep-05 19:02 
AnswerRe: I want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
Luis Alonso Ramos13-Sep-05 14:09
Luis Alonso Ramos13-Sep-05 14:09 
GeneralRe: I want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
shanzy13-Sep-05 19:27
shanzy13-Sep-05 19:27 
AnswerRe: I want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
Daniel Turini13-Sep-05 21:08
Daniel Turini13-Sep-05 21:08 
GeneralRe: I want using the method "system("PAUSE");" in C#, but I cannot find which namespace it blog to? Pin
shanzy13-Sep-05 21:37
shanzy13-Sep-05 21:37 
QuestionRegex find Date in HTML Response String Pin
surfman1913-Sep-05 10:21
surfman1913-Sep-05 10:21 
AnswerRe: Regex find Date in HTML Response String Pin
User 665813-Sep-05 12:34
User 665813-Sep-05 12:34 
GeneralRe: Regex find Date in HTML Response String Pin
surfman1913-Sep-05 13:02
surfman1913-Sep-05 13:02 
GeneralRe: Regex find Date in HTML Response String Pin
surfman1913-Sep-05 13:30
surfman1913-Sep-05 13:30 

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.