Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
QuestionProblems opening Form2 Pin
C# Beginner Nick2-Jun-08 11:07
C# Beginner Nick2-Jun-08 11:07 
AnswerRe: Problems opening Form2 Pin
DaveyM692-Jun-08 11:38
professionalDaveyM692-Jun-08 11:38 
GeneralRe: Problems opening Form2 [modified] Pin
C# Beginner Nick2-Jun-08 11:55
C# Beginner Nick2-Jun-08 11:55 
GeneralRe: Problems opening Form2 Pin
Christian Graus2-Jun-08 17:13
protectorChristian Graus2-Jun-08 17:13 
GeneralRe: Problems opening Form2 Pin
Hum Dum2-Jun-08 21:03
Hum Dum2-Jun-08 21:03 
GeneralRe: Problems opening Form2 Pin
MarkB7772-Jun-08 18:32
MarkB7772-Jun-08 18:32 
GeneralRe: Problems opening Form2 Pin
darkelv2-Jun-08 20:13
darkelv2-Jun-08 20:13 
GeneralRe: Problems opening Form2 Pin
DaveyM693-Jun-08 1:49
professionalDaveyM693-Jun-08 1:49 
C# Beginner Nick wrote:
P.S. you were close


No, I was correct.

Your initial code was:
Form1 form = new Form1();
form.Show();

doing
Form2 form2 = new Form2();
form.show();

will create an instance of Form2 (form2) that is not used, but will show your Form1 instance again (form).

Dave

QuestionWindows Service and SystemFileWatcher Pin
KaptinKrunch2-Jun-08 9:57
KaptinKrunch2-Jun-08 9:57 
AnswerRe: Windows Service and SystemFileWatcher Pin
DaveyM692-Jun-08 10:20
professionalDaveyM692-Jun-08 10:20 
GeneralRe: Windows Service and SystemFileWatcher Pin
KaptinKrunch2-Jun-08 10:24
KaptinKrunch2-Jun-08 10:24 
QuestionQuerying LDAP and AD Pin
mabby2162-Jun-08 8:34
mabby2162-Jun-08 8:34 
AnswerRe: Querying LDAP and AD Pin
Kythen2-Jun-08 12:56
Kythen2-Jun-08 12:56 
QuestionSNMP Set Command Problem Pin
zoiomon2-Jun-08 8:02
zoiomon2-Jun-08 8:02 
QuestionNeed Immediate Help Pin
Saiyed Alam2-Jun-08 7:56
Saiyed Alam2-Jun-08 7:56 
AnswerRe: Need Immediate Help Pin
Christian Graus2-Jun-08 8:13
protectorChristian Graus2-Jun-08 8:13 
GeneralRe: Need Immediate Help Pin
Saiyed Alam2-Jun-08 8:31
Saiyed Alam2-Jun-08 8:31 
GeneralRe: Need Immediate Help Pin
Christian Graus2-Jun-08 8:42
protectorChristian Graus2-Jun-08 8:42 
GeneralRe: Need Immediate Help Pin
Saiyed Alam2-Jun-08 16:31
Saiyed Alam2-Jun-08 16:31 
AnswerRe: Need Immediate Help Pin
User 66582-Jun-08 8:21
User 66582-Jun-08 8:21 
Questionpliz tell me name of exercise book C#??? Pin
mbaz2-Jun-08 5:46
mbaz2-Jun-08 5:46 
AnswerRe: pliz tell me name of exercise book C#??? Pin
Christian Graus2-Jun-08 5:55
protectorChristian Graus2-Jun-08 5:55 
JokeRe: pliz tell me name of exercise book C#??? Pin
Guffa2-Jun-08 8:26
Guffa2-Jun-08 8:26 
AnswerRe: pliz tell me name of exercise book C#??? Pin
GuyThiebaut2-Jun-08 9:57
professionalGuyThiebaut2-Jun-08 9:57 
QuestionZip and Unzip using Proces.StartInfo Pin
JustRonald2-Jun-08 5:00
JustRonald2-Jun-08 5:00 

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.