Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Show Forms

Show Forms

Scheduled Pinned Locked Moved Windows Forms
csharptutorial
12 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mujz

    How to hide one form and show the other form in c#

    G Offline
    G Offline
    Giorgi Dalakishvili
    wrote on last edited by
    #2

    You can use Hide and Show methods of the form

    my articles

    M 1 Reply Last reply
    0
    • G Giorgi Dalakishvili

      You can use Hide and Show methods of the form

      my articles

      M Offline
      M Offline
      Mujz
      wrote on last edited by
      #3

      I cant acees these functions (Hide And Show) how to do this

      G 1 Reply Last reply
      0
      • M Mujz

        I cant acees these functions (Hide And Show) how to do this

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #4

        Post the code snippet

        my articles

        M 1 Reply Last reply
        0
        • G Giorgi Dalakishvili

          Post the code snippet

          my articles

          M Offline
          M Offline
          Mujz
          wrote on last edited by
          #5

          i dont have code snippet i am trying to move from one formm to another but cant find these functions when i press the Form1. they dont appear in drop down

          G 1 Reply Last reply
          0
          • M Mujz

            i dont have code snippet i am trying to move from one formm to another but cant find these functions when i press the Form1. they dont appear in drop down

            G Offline
            G Offline
            Giorgi Dalakishvili
            wrote on last edited by
            #6

            this.Hide() will hide the form that is open. If Form2 is another class then Form2 fr=new Form2(); fr.Show()

            my articles

            M 1 Reply Last reply
            0
            • G Giorgi Dalakishvili

              this.Hide() will hide the form that is open. If Form2 is another class then Form2 fr=new Form2(); fr.Show()

              my articles

              M Offline
              M Offline
              Mujz
              wrote on last edited by
              #7

              thanx i was'nt creating an instance that's why could not access these functions.thanx a lot

              G 1 Reply Last reply
              0
              • M Mujz

                thanx i was'nt creating an instance that's why could not access these functions.thanx a lot

                G Offline
                G Offline
                Giorgi Dalakishvili
                wrote on last edited by
                #8

                Mujz......... wrote:

                i was'nt creating an instance that's why could not access these functions

                You can access them without creating instance but you will get an exception during runtime :d

                my articles

                C 1 Reply Last reply
                0
                • G Giorgi Dalakishvili

                  Mujz......... wrote:

                  i was'nt creating an instance that's why could not access these functions

                  You can access them without creating instance but you will get an exception during runtime :d

                  my articles

                  C Offline
                  C Offline
                  Colin Angus Mackay
                  wrote on last edited by
                  #9

                  Giorgi Dalakishvili wrote:

                  You can access them without creating instance but you will get an exception during runtime

                  I think he meant that he was attempting to call them as if they were static methods, rather than instance methods.


                  Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                  G 1 Reply Last reply
                  0
                  • C Colin Angus Mackay

                    Giorgi Dalakishvili wrote:

                    You can access them without creating instance but you will get an exception during runtime

                    I think he meant that he was attempting to call them as if they were static methods, rather than instance methods.


                    Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                    G Offline
                    G Offline
                    Giorgi Dalakishvili
                    wrote on last edited by
                    #10

                    It seems that I have misunderstood :)

                    my articles

                    C 1 Reply Last reply
                    0
                    • G Giorgi Dalakishvili

                      It seems that I have misunderstood :)

                      my articles

                      C Offline
                      C Offline
                      Colin Angus Mackay
                      wrote on last edited by
                      #11

                      Don't worry - I was a bit confused about what he meant for a moment too.


                      Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                      1 Reply Last reply
                      0
                      • M Mujz

                        How to hide one form and show the other form in c#

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #12

                        The best way to do this is to create both forms as custom controls, put them both on the one form, and change which one is visible ( and resize the form if need be )

                        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups