Click here to Skip to main content
15,887,338 members
Home / Discussions / C#
   

C#

 
AnswerRe: help me solve this error Pin
fofoth2-Jun-08 21:15
fofoth2-Jun-08 21:15 
AnswerRe: help me solve this error Pin
anujarya_20013-Jun-08 19:36
anujarya_20013-Jun-08 19:36 
QuestionLocating Windows taskbar Pin
Jergosh2-Jun-08 11:32
Jergosh2-Jun-08 11:32 
AnswerRe: Locating Windows taskbar Pin
Giorgi Dalakishvili2-Jun-08 11:38
mentorGiorgi Dalakishvili2-Jun-08 11:38 
AnswerRe: Locating Windows taskbar Pin
DaveyM692-Jun-08 11:41
professionalDaveyM692-Jun-08 11:41 
AnswerRe: Locating Windows taskbar Pin
Shree2-Jun-08 19:10
Shree2-Jun-08 19:10 
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 

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.