Thread: extreme begginer's help

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    extreme begginer's help

    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

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

  3. #3
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    Thanks!!!!

    ok i got the form part to work, now i cant get this visible to work

    Code:
    picMain.Visible = False;
    thats wat i tried

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

  5. #5
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    sorry forgot to say...
    im not doing that from the same form its on

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extreme Breakout, finally it's finished
    By hdragon in forum Game Programming
    Replies: 16
    Last Post: 04-09-2006, 06:39 AM
  2. Beta Arena Extreme RPG
    By Padawan in forum Game Programming
    Replies: 1
    Last Post: 08-11-2004, 08:58 AM
  3. How I can be extreme programmer for C/C++?
    By bit0101 in forum C Programming
    Replies: 14
    Last Post: 03-25-2003, 12:58 PM
  4. Extreme Programming
    By FillYourBrain in forum C++ Programming
    Replies: 5
    Last Post: 08-22-2002, 03:24 PM
  5. Rain - extreme cooling - extreme hunger
    By iain in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-13-2002, 10:00 PM