Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: Magnifying glass control needed - recommendations please Pin
TJoe10-Oct-07 8:55
TJoe10-Oct-07 8:55 
Questionconvert image format [modified] Pin
cmarmr8-Oct-07 10:41
cmarmr8-Oct-07 10:41 
AnswerRe: convert image format Pin
Guffa8-Oct-07 12:31
Guffa8-Oct-07 12:31 
GeneralRe: convert image format Pin
cmarmr9-Oct-07 2:38
cmarmr9-Oct-07 2:38 
QuestionComparing type Pin
lsconyer8-Oct-07 9:54
lsconyer8-Oct-07 9:54 
AnswerRe: Comparing type Pin
led mike8-Oct-07 10:01
led mike8-Oct-07 10:01 
AnswerRe: Comparing type Pin
Luc Pattyn8-Oct-07 10:01
sitebuilderLuc Pattyn8-Oct-07 10:01 
AnswerRe: Comparing type Pin
Pete O'Hanlon8-Oct-07 10:11
mvePete O'Hanlon8-Oct-07 10:11 
*cough* use GetType() * cough *. Could I suggest that you also look at converting this to a generic method:
private bool ActivateForm<T>(T form) where T : Form
{
  bool isOpen = false;
  int i = 0;
  do
  {
    if (MdiChildren[i].GetType() == typeof(T))
    {
      MdiChildren[i].Activate();
      isOpen = true;
    }
  } while (!isOpen && i++ < this.MdiChildren.Count);
  return isOpen
}
I you really want to learn some more advanced .NET, you could look at modifying this to use anonymous methods.



Deja View - the feeling that you've seen this post before.

AnswerRe: Comparing type Pin
Nissim Salomon8-Oct-07 10:19
Nissim Salomon8-Oct-07 10:19 
QuestionFolderBrowserDialog and ThreadStateException Pin
Saamir8-Oct-07 9:42
Saamir8-Oct-07 9:42 
QuestionRe: FolderBrowserDialog and ThreadStateException Pin
TJoe10-Oct-07 8:53
TJoe10-Oct-07 8:53 
QuestionSetup Pin
half-life8-Oct-07 8:23
half-life8-Oct-07 8:23 
AnswerRe: Setup Pin
Pete O'Hanlon8-Oct-07 9:48
mvePete O'Hanlon8-Oct-07 9:48 
GeneralRe: Setup Pin
il_masacratore8-Oct-07 21:26
il_masacratore8-Oct-07 21:26 
QuestionInfragistics UltraWinGrid control Pin
umashankergr88-Oct-07 8:18
umashankergr88-Oct-07 8:18 
JokeRe: Infragistics UltraWinGrid control Pin
karthick.n.mca8-Oct-07 21:09
karthick.n.mca8-Oct-07 21:09 
GeneralRe: Infragistics UltraWinGrid control Pin
umashankergr89-Oct-07 0:27
umashankergr89-Oct-07 0:27 
QuestionCheck Registry for Key Pin
andyr20058-Oct-07 7:33
andyr20058-Oct-07 7:33 
AnswerRe: Check Registry for Key [modified] Pin
Kristian Sixhøj8-Oct-07 7:41
Kristian Sixhøj8-Oct-07 7:41 
AnswerRe: Check Registry for Key Pin
Guffa8-Oct-07 7:42
Guffa8-Oct-07 7:42 
GeneralRe: Check Registry for Key Pin
andyr20058-Oct-07 8:00
andyr20058-Oct-07 8:00 
GeneralRe: Check Registry for Key Pin
Scott Dorman8-Oct-07 8:35
professionalScott Dorman8-Oct-07 8:35 
GeneralRe: Check Registry for Key Pin
Anthony Mushrow8-Oct-07 8:37
professionalAnthony Mushrow8-Oct-07 8:37 
GeneralRe: Check Registry for Key Pin
andyr20058-Oct-07 9:06
andyr20058-Oct-07 9:06 
GeneralRe: Check Registry for Key Pin
Scott Dorman8-Oct-07 9:13
professionalScott Dorman8-Oct-07 9:13 

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.