hi im very new to C# just wonder how to do 2 things
set the visibillity of something to true and false
and show a form
like say in vb its form.show
and with the visibillity thats in the source
thanks
hi im very new to C# just wonder how to do 2 things
set the visibillity of something to true and false
and show a form
like say in vb its form.show
and with the visibillity thats in the source
thanks
Any subclass of control has a property "Visible". Set it to true or false to make something visible or invisible.
If you have a form, you can show it by using the Show Method on your instance of the form. Probably, ShowDialog is what you want though, it shows the form as a dialog that is modal until you close it.
Form1 form = new Form1();
form.ShowDialog();
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
ok i got the form part to work, now i cant get this visible to work
thats wat i triedCode:picMain.Visible = False;
The line should set picMain to invisible. False is written with a lowercase f in C#, but that's the only thing I see.
What happened when you tried it ?
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
sorry forgot to say...
im not doing that from the same form its on
I need more information. What is picMain ? What do you want to happen ? What does happen ?
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.