Click here to Skip to main content
15,900,724 members
Home / Discussions / C#
   

C#

 
QuestionCheck if open is already open Pin
soneliso7-May-07 23:22
soneliso7-May-07 23:22 
AnswerRe: Check if open is already open Pin
fang_eric7-May-07 23:34
fang_eric7-May-07 23:34 
GeneralRe: Check if open is already open Pin
Giorgi Dalakishvili7-May-07 23:39
mentorGiorgi Dalakishvili7-May-07 23:39 
GeneralRe: Check if open is already open Pin
fang_eric7-May-07 23:45
fang_eric7-May-07 23:45 
GeneralRe: Check if open is already open Pin
soneliso8-May-07 0:17
soneliso8-May-07 0:17 
GeneralRe: Check if open is already open Pin
soneliso7-May-07 23:49
soneliso7-May-07 23:49 
GeneralRe: Check if open is already open Pin
Nouman Bhatti8-May-07 0:31
Nouman Bhatti8-May-07 0:31 
AnswerRe: Check if open is already open Pin
Aron Mišerda8-May-07 1:46
Aron Mišerda8-May-07 1:46 
Best way to solve this is to to make your class constructor private and put static method that returns reference to only instance of your class

Code example:
<br />
class Example<br />
{<br />
  private static Example THIS = null;<br />
<br />
  public static Example CREATE_FORM()<br />
  {<br />
    if (THIS == null)<br />
      THIS = new Example();<br />
<br />
    return THIS;<br />
  }<br />
<br />
  private Example()<br />
  {<br />
  }<br />
}<br />

AnswerRe: Check if open is already open Pin
AFSEKI8-May-07 23:23
AFSEKI8-May-07 23:23 
Questionneed help with string onchange event handler Pin
neodeaths7-May-07 22:59
neodeaths7-May-07 22:59 
AnswerRe: need help with string onchange event handler Pin
Bijesh7-May-07 23:15
Bijesh7-May-07 23:15 
GeneralRe: need help with string onchange event handler Pin
neodeaths7-May-07 23:29
neodeaths7-May-07 23:29 
GeneralRe: need help with string onchange event handler Pin
Bijesh8-May-07 0:30
Bijesh8-May-07 0:30 
Questionon closing event of old form new form should be visible and after verification both form sh'd close Pin
fgfdhghgfd7-May-07 22:44
fgfdhghgfd7-May-07 22:44 
AnswerRe: on closing event of old form new form should be visible and after verification both form sh'd close Pin
Giorgi Dalakishvili7-May-07 22:49
mentorGiorgi Dalakishvili7-May-07 22:49 
AnswerRe: on closing event of old form new form should be visible and after verification both form sh'd close Pin
Christian Graus7-May-07 22:56
protectorChristian Graus7-May-07 22:56 
Question.NET remoting: inter-client communication Pin
ChrisKiki7-May-07 22:38
ChrisKiki7-May-07 22:38 
QuestionCommunication windows app with windows service Pin
Diego F.7-May-07 22:31
Diego F.7-May-07 22:31 
QuestionFiltering dataset Pin
Muammar©7-May-07 22:24
Muammar©7-May-07 22:24 
AnswerRe: Filtering dataset Pin
rah_sin7-May-07 22:30
professionalrah_sin7-May-07 22:30 
AnswerRe: Filtering dataset Pin
Giorgi Dalakishvili7-May-07 22:35
mentorGiorgi Dalakishvili7-May-07 22:35 
Questionwindow application problem - plz help Pin
Sekar Kumarasamy7-May-07 22:19
Sekar Kumarasamy7-May-07 22:19 
AnswerRe: window application problem - plz help Pin
rah_sin7-May-07 22:28
professionalrah_sin7-May-07 22:28 
AnswerRe: window application problem - plz help Pin
Christian Graus7-May-07 22:33
protectorChristian Graus7-May-07 22:33 
GeneralRe: window application problem - plz help Pin
prabuinet8-May-07 3:48
prabuinet8-May-07 3:48 

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.