Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
Generaleditable menu Pin
g00fyman29-Jun-05 21:26
g00fyman29-Jun-05 21:26 
GeneralSecure Remoting Pin
esjq29-Jun-05 21:16
esjq29-Jun-05 21:16 
GeneralRe: Secure Remoting Pin
Adam Goossens30-Jun-05 16:48
Adam Goossens30-Jun-05 16:48 
Generalquestion on Lucene Search Engine Pin
ekynox29-Jun-05 20:41
ekynox29-Jun-05 20:41 
GeneralRectangle problem Pin
Rassul Yunussov29-Jun-05 19:47
Rassul Yunussov29-Jun-05 19:47 
GeneralRe: Rectangle problem Pin
mav.northwind29-Jun-05 20:46
mav.northwind29-Jun-05 20:46 
GeneralMDI Application Pin
deep729-Jun-05 19:45
deep729-Jun-05 19:45 
GeneralRe: MDI Application Pin
sreejith ss nair29-Jun-05 21:39
sreejith ss nair29-Jun-05 21:39 
1)If you don't want to show same form more than once, then try to check the instance of required form before showing.

eg:
private ChildFrm1 insChildFrm1;<br />
<br />
		private void Open_Frm_Click(object sender, System.EventArgs e)<br />
		{<br />
			if(insChildFrm1!=null)<br />
				insChildFrm1.Activate();<br />
			else<br />
			{<br />
				insChildFrm1=new ChildFrm1();<br />
				insChildFrm1.Show();<br />
			}<br />
		}


the above functionality can also be achived through Singleton implimentation of your child form class.

2) Insted of Show() use ShowDialog() of form class to make only one form active.

Sreejith Nair
[ My Articles ]
GeneralCollection Pin
Rassul Yunussov29-Jun-05 19:13
Rassul Yunussov29-Jun-05 19:13 
GeneralRe: Collection Pin
Christian Graus29-Jun-05 19:23
protectorChristian Graus29-Jun-05 19:23 
GeneralOleDbTransaction (rollback) Pin
myNameIsRon29-Jun-05 19:12
myNameIsRon29-Jun-05 19:12 
GeneralTrouble with marshalling structure Pin
Josh Lindenmuth29-Jun-05 18:42
Josh Lindenmuth29-Jun-05 18:42 
GeneralRe: Trouble with marshalling structure Pin
Bojan Rajkovic30-Jun-05 15:50
Bojan Rajkovic30-Jun-05 15:50 
Generalfunction template Pin
BicycleTheif29-Jun-05 17:55
BicycleTheif29-Jun-05 17:55 
GeneralRe: function template Pin
Christian Graus29-Jun-05 18:12
protectorChristian Graus29-Jun-05 18:12 
GeneralI have trouble with fgets function in C code Pin
dinh van hai29-Jun-05 17:20
dinh van hai29-Jun-05 17:20 
GeneralRe: I have trouble with fgets function in C code Pin
Christian Graus29-Jun-05 18:14
protectorChristian Graus29-Jun-05 18:14 
GeneralRun another console application in my console application Pin
eggie529-Jun-05 13:08
eggie529-Jun-05 13:08 
GeneralRe: Run another console application in my console application Pin
Matt Gerrans29-Jun-05 14:37
Matt Gerrans29-Jun-05 14:37 
GeneralRe: Run another console application in my console application Pin
eggie530-Jun-05 6:51
eggie530-Jun-05 6:51 
GeneralRe: Run another console application in my console application Pin
leppie30-Jun-05 7:45
leppie30-Jun-05 7:45 
GeneralRe: Run another console application in my console application Pin
Matt Gerrans30-Jun-05 7:55
Matt Gerrans30-Jun-05 7:55 
GeneralFullRowSelect in DataGrid Pin
Jassim Rahma29-Jun-05 11:52
Jassim Rahma29-Jun-05 11:52 
GeneralRe: FullRowSelect in DataGrid Pin
Hugo Migneron30-Jun-05 3:09
Hugo Migneron30-Jun-05 3:09 
GeneralHeader information in UDP Packet Pin
Hugo Migneron29-Jun-05 9:36
Hugo Migneron29-Jun-05 9:36 

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.