Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
QuestionRe: Release Photo Pin
sanforjackass25-Aug-09 20:52
sanforjackass25-Aug-09 20:52 
AnswerRe: Release Photo Pin
Henry Minute25-Aug-09 21:59
Henry Minute25-Aug-09 21:59 
GeneralRe: Release Photo Pin
sanforjackass26-Aug-09 2:16
sanforjackass26-Aug-09 2:16 
QuestionHelp needed with simple Web Spider Code Pin
manormi125-Aug-09 16:02
manormi125-Aug-09 16:02 
AnswerRe: Help needed with simple Web Spider Code Pin
N a v a n e e t h25-Aug-09 16:41
N a v a n e e t h25-Aug-09 16:41 
QuestionimageList images appear to be getting "corrupted" Pin
shultas25-Aug-09 14:54
shultas25-Aug-09 14:54 
AnswerRe: imageList images appear to be getting "corrupted" Pin
Henry Minute25-Aug-09 22:05
Henry Minute25-Aug-09 22:05 
QuestionRefactoring question Pin
Illegal Operation25-Aug-09 14:42
Illegal Operation25-Aug-09 14:42 
Hi
I have a Windows Forms Application and I have written a piece of code that makes sure that there will always only be one instance of a form open in my MDI app.

My code looks like this:

private static Forms.Employees.EmployeeForm _newEmployeeForm;

public static Forms.Employees.EmployeeForm GetChildInstance()
{
if(_newEmployeeForm == null || _newEmployeeForm.IsDisposed)
{
_newEmployeeForm = new EmployeeForm();
}
return _newEmployeeForm
}


My question is this, How can I make this code generic so that all my forms can inherit this functionality?

Thanks!

Illegal Operation

AnswerRe: Refactoring question Pin
Not Active25-Aug-09 15:03
mentorNot Active25-Aug-09 15:03 
AnswerRe: Refactoring question Pin
N a v a n e e t h25-Aug-09 16:26
N a v a n e e t h25-Aug-09 16:26 
QuestionConvert Process to the orginal C# COM class Pin
Gindi Bar Yahav25-Aug-09 13:07
Gindi Bar Yahav25-Aug-09 13:07 
Question[Message Deleted] Pin
WhiteWolf1925-Aug-09 11:49
WhiteWolf1925-Aug-09 11:49 
AnswerRe: C# code help Pin
Not Active25-Aug-09 12:20
mentorNot Active25-Aug-09 12:20 
AnswerRe: C# code help Pin
_Maxxx_25-Aug-09 19:38
professional_Maxxx_25-Aug-09 19:38 
QuestionEnumerator Pin
CodingYoshi25-Aug-09 11:06
CodingYoshi25-Aug-09 11:06 
AnswerRe: Enumerator Pin
Adam R Harris25-Aug-09 11:51
Adam R Harris25-Aug-09 11:51 
GeneralRe: Enumerator Pin
CodingYoshi25-Aug-09 17:20
CodingYoshi25-Aug-09 17:20 
AnswerRe: Enumerator Pin
DaveyM6925-Aug-09 11:51
professionalDaveyM6925-Aug-09 11:51 
AnswerRe: Enumerator Pin
Alan N25-Aug-09 13:45
Alan N25-Aug-09 13:45 
AnswerRe: Enumerator Pin
N a v a n e e t h25-Aug-09 16:36
N a v a n e e t h25-Aug-09 16:36 
GeneralRe: Enumerator Pin
CodingYoshi25-Aug-09 17:22
CodingYoshi25-Aug-09 17:22 
Questionbackgroundworker problem Pin
Planker25-Aug-09 10:26
Planker25-Aug-09 10:26 
AnswerRe: backgroundworker problem Pin
DaveyM6925-Aug-09 11:44
professionalDaveyM6925-Aug-09 11:44 
AnswerRe: backgroundworker problem Pin
N a v a n e e t h25-Aug-09 16:52
N a v a n e e t h25-Aug-09 16:52 
AnswerRe: backgroundworker problem Pin
Abdul Rahman Hamidy25-Aug-09 19:51
Abdul Rahman Hamidy25-Aug-09 19:51 

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.