Click here to Skip to main content
16,006,440 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL 2005 Express embedded? Pin
topcatalpha23-Nov-06 3:43
topcatalpha23-Nov-06 3:43 
AnswerRe: SQL 2005 Express embedded? Pin
Scott Dorman27-Nov-06 5:17
professionalScott Dorman27-Nov-06 5:17 
QuestionProcessorID,HDDSerialNumber Pin
Manithar23-Nov-06 2:35
Manithar23-Nov-06 2:35 
AnswerRe: ProcessorID,HDDSerialNumber Pin
Nader Elshehabi23-Nov-06 10:21
Nader Elshehabi23-Nov-06 10:21 
Questionshow form once Pin
hastk23-Nov-06 2:34
hastk23-Nov-06 2:34 
AnswerRe: show form once Pin
LiquidE_SA23-Nov-06 2:58
LiquidE_SA23-Nov-06 2:58 
GeneralRe: show form once Pin
Jon Hulatt23-Nov-06 3:51
Jon Hulatt23-Nov-06 3:51 
AnswerRe: show form once Pin
Jon Hulatt23-Nov-06 3:54
Jon Hulatt23-Nov-06 3:54 
If you define a member variable in your class, then you can test whether the member is null or not to decide whether to show the form:-

class MyClass
{
   ...


   MyForm m_frm;

   public void OnButton1Click(object sender, EventArgs e)
   {
      if (m_frm == null)
      {
         m_frm = new MyForm();
         m_form.Show();
      }
   }
}


The problem with that is that if the user closes the form, they'll not be able to reopen it. To do that you'd need to handle the form's Closing event, and set the m_frm reference to null.

using System.Beer;

QuestionGauss distribution Pin
Cl.Kurtz23-Nov-06 2:28
Cl.Kurtz23-Nov-06 2:28 
AnswerRe: Gauss distribution Pin
Stefan Troschuetz23-Nov-06 6:22
Stefan Troschuetz23-Nov-06 6:22 
QuestionGaussian (Normal) distribution Pin
Cl.Kurtz23-Nov-06 2:20
Cl.Kurtz23-Nov-06 2:20 
AnswerRe: Gaussian (Normal) distribution Pin
Guffa23-Nov-06 2:51
Guffa23-Nov-06 2:51 
QuestionMake auto-generated DataSets internal classes Pin
Andrew_Thomas23-Nov-06 0:11
Andrew_Thomas23-Nov-06 0:11 
Questionstored procedure for fetching ith row of table in dataset Pin
ashu.singh22-Nov-06 23:55
ashu.singh22-Nov-06 23:55 
QuestionHow to call connection string from web.config Pin
mwith22-Nov-06 23:55
mwith22-Nov-06 23:55 
AnswerRe: How to call connection string from web.config [modified] Pin
kinnuP22-Nov-06 23:57
kinnuP22-Nov-06 23:57 
GeneralRe: How to call connection string from web.config Pin
Colin Angus Mackay23-Nov-06 0:14
Colin Angus Mackay23-Nov-06 0:14 
GeneralRe: How to call connection string from web.config Pin
kinnuP23-Nov-06 0:25
kinnuP23-Nov-06 0:25 
QuestionRe: How to call connection string from web.config Pin
mwith23-Nov-06 3:30
mwith23-Nov-06 3:30 
AnswerRe: How to call connection string from web.config Pin
Eduard Keilholz23-Nov-06 4:00
Eduard Keilholz23-Nov-06 4:00 
GeneralRe: How to call connection string from web.config Pin
mwith23-Nov-06 18:15
mwith23-Nov-06 18:15 
QuestionSingle intance Pin
kinnuP22-Nov-06 23:53
kinnuP22-Nov-06 23:53 
AnswerRe: Single intance Pin
Christian Graus22-Nov-06 23:57
protectorChristian Graus22-Nov-06 23:57 
GeneralRe: Single intance Pin
kinnuP23-Nov-06 0:01
kinnuP23-Nov-06 0:01 
GeneralRe: Single intance Pin
Colin Angus Mackay23-Nov-06 0:19
Colin Angus Mackay23-Nov-06 0:19 

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.