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

C#

 
AnswerRe: Forms Pin
Le centriste14-Nov-08 7:24
Le centriste14-Nov-08 7:24 
GeneralRe: Forms Pin
humayunlalzad14-Nov-08 7:41
humayunlalzad14-Nov-08 7:41 
GeneralRe: Forms Pin
Ennis Ray Lynch, Jr.14-Nov-08 7:47
Ennis Ray Lynch, Jr.14-Nov-08 7:47 
AnswerRe: Forms Pin
Le centriste14-Nov-08 7:50
Le centriste14-Nov-08 7:50 
GeneralRe: Forms Pin
humayunlalzad14-Nov-08 8:09
humayunlalzad14-Nov-08 8:09 
GeneralRe: Forms Pin
Le centriste14-Nov-08 8:11
Le centriste14-Nov-08 8:11 
AnswerRe: Forms Pin
Hum Dum14-Nov-08 23:03
Hum Dum14-Nov-08 23:03 
GeneralRe: Forms Pin
humayunlalzad15-Nov-08 5:15
humayunlalzad15-Nov-08 5:15 
Yes you are rt. Thanx for pointing out the prob. I tried to set form2 to null in the form2 closing event, but I dont why it's not working.
but this works
private void button1_Click(object sender, EventArgs e)
     {
         if (form2 == null)
         {
             form2 = new Form2(this);
             form2.Show();
         }
         else if (form2.IsDisposed)
         {
             form2 = new Form2(this);
             form2.Show();
         }
         else
         {
             form2.Focus();
         }
     }

The only problem is that if I want to work on form2 and close form1, form2 also closes since form2.Show() had been called. Is there a way to keep form2 running even after form1 has been closed

Guys Help
GeneralRe: Forms Pin
nelsonpaixao15-Nov-08 5:13
nelsonpaixao15-Nov-08 5:13 
GeneralRe: Forms Pin
humayunlalzad15-Nov-08 7:39
humayunlalzad15-Nov-08 7:39 
GeneralRe: Forms Pin
nelsonpaixao16-Nov-08 13:38
nelsonpaixao16-Nov-08 13:38 
Questioncontrol moving [modified] Pin
netJP12L14-Nov-08 6:02
netJP12L14-Nov-08 6:02 
AnswerRe: control moving Pin
Pedram Behroozi14-Nov-08 10:21
Pedram Behroozi14-Nov-08 10:21 
GeneralRe: control moving Pin
netJP12L14-Nov-08 10:50
netJP12L14-Nov-08 10:50 
GeneralRe: control moving Pin
Pedram Behroozi14-Nov-08 11:06
Pedram Behroozi14-Nov-08 11:06 
QuestionTracing - Perfomance impact. Pin
Member 232448314-Nov-08 5:59
Member 232448314-Nov-08 5:59 
AnswerRe: Tracing - Perfomance impact. Pin
carbon_golem14-Nov-08 7:14
carbon_golem14-Nov-08 7:14 
AnswerRe: Tracing - Perfomance impact. Pin
Wendelius14-Nov-08 7:41
mentorWendelius14-Nov-08 7:41 
AnswerRe: Tracing - Perfomance impact. Pin
Scott Bruno14-Nov-08 8:02
Scott Bruno14-Nov-08 8:02 
GeneralRe: Tracing - Perfomance impact. Pin
Guffa14-Nov-08 18:17
Guffa14-Nov-08 18:17 
GeneralRe: Tracing - Perfomance impact. Pin
Scott Bruno15-Nov-08 8:08
Scott Bruno15-Nov-08 8:08 
AnswerRe: Tracing - Perfomance impact. Pin
Pete O'Hanlon14-Nov-08 10:39
mvePete O'Hanlon14-Nov-08 10:39 
GeneralRe: Tracing - Perfomance impact. Pin
Member 232448314-Nov-08 13:14
Member 232448314-Nov-08 13:14 
QuestionUrgent Help Dataset DB Update Pin
NewbieGL14-Nov-08 5:17
NewbieGL14-Nov-08 5:17 
AnswerRe: Urgent Help Dataset DB Update Pin
Vimalsoft(Pty) Ltd14-Nov-08 7:16
professionalVimalsoft(Pty) Ltd14-Nov-08 7:16 

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.