Cant display forms 2..3..4..

I Got a problem..

i got a program that needs 3 or even 4 forms ..but the problem is i cannot display higher then form2

enve if i try in form1

Form3 NewForm3 = New Form3();

NewForm3.Show();

or any other ..even the aboutbox...nothing..but if i try do that in the 2nd form..i can display form3 from from there..but not from form1...how come?and how i fix this..

ShadowRayz

[472 byte] By [ShadowRayz] at [2007-12-24]
# 1

what happens when you try to display it? just "nothing"? I wouldnt imagine some limitations on this in the express editions.

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

this prob happens only on the project im working on..

if i make new 1 everything is ok i can easlu display any form i want

on my project..like wen i start type Form and that window open...but theres no form3

but i do have form3 and form 4

i dunno..its really weird..

ShadowRayz at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 3

perhaps the other forms are hiding somewhere in the back? try doing:

form3.BringToFront();

form3.Activate();

does this make any difference?

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 4

http://img220.imageshack.us/img220/6518/1jc3.gif

Look..

it like dont even find such Form...

ShadowRayz at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 5

ok, I see - its a compiler error - most likely it means that you did not specify the exact name of the class - the compiler is case sensitive so:

form2

is a different meaning to

Form2

give it a try....see what happens :-) Make sure that the class names you are going to be instantiating are in the exact same wording/formatting

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 6

Im not sure i got you right...

you say i dont spell the form name right?...

still...look

http://img162.imageshack.us/img162/3461/1mj5.gif

it just dont see that i got other forms...:s

ShadowRayz at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 7

well it was hard seeing how you declared it in the original screenshot but the compiler said that "form3" does not exist but if you did "Form3" then it would work.

So if you go back to say...Form2 as in your original screen shot and typed in:

Form3 theOtherForm = new Form3();

then it should compile and run...is this not the case? Can you also post some code where the compiler is throwing errors at?

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...