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. C#
  4. You gotta be kiddin me

You gotta be kiddin me

Scheduled Pinned Locked Moved C#
csharptutorialquestion
4 Posts 2 Posters 0 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.
  • A Offline
    A Offline
    antoine orchus tech
    wrote on last edited by
    #1

    Ok! So Im into a c# programs that involes multiple forms. Ya know guys, in VB, we'd just do this Unload form1 form2.show And that was it.. ;-)p Well that ain'T working so telle me, how do we switch from one form to another in C#, like in the example above!!!??? Thanks, ;-) Orlanda

    M 1 Reply Last reply
    0
    • A antoine orchus tech

      Ok! So Im into a c# programs that involes multiple forms. Ya know guys, in VB, we'd just do this Unload form1 form2.show And that was it.. ;-)p Well that ain'T working so telle me, how do we switch from one form to another in C#, like in the example above!!!??? Thanks, ;-) Orlanda

      M Offline
      M Offline
      matthias s 0
      wrote on last edited by
      #2

      Well, you have to be a little more specific on what you're trying to do. Do you want to show a 2nd Form from the Form currently displayed? If you have a Windows Forms application then you gotta be carefull, because you will have the Applications MessageLoop attached to (most probably) your main Application Form. You can put the MessageLoop onto a different Form using the ApplicationContext class and its MainWindow (I think) Property. If you provide us with a little more info we might be able to help better. Matthias

      You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)

      www.mattbart.org
      Sonork ID: 100.32002

      A 1 Reply Last reply
      0
      • M matthias s 0

        Well, you have to be a little more specific on what you're trying to do. Do you want to show a 2nd Form from the Form currently displayed? If you have a Windows Forms application then you gotta be carefull, because you will have the Applications MessageLoop attached to (most probably) your main Application Form. You can put the MessageLoop onto a different Form using the ApplicationContext class and its MainWindow (I think) Property. If you provide us with a little more info we might be able to help better. Matthias

        You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)

        www.mattbart.org
        Sonork ID: 100.32002

        A Offline
        A Offline
        antoine orchus tech
        wrote on last edited by
        #3

        Hi! Thanks for the reply. :-) Ok I'll be specific. I need to open up seemlessly Form_2 exactly where was Form_1. That probably means Unloading Form_1. The user press a buton, and Form_2 opens up (with Form_1 flushed out of the way). Thanks! Orlanda Coding is a family business

        M 1 Reply Last reply
        0
        • A antoine orchus tech

          Hi! Thanks for the reply. :-) Ok I'll be specific. I need to open up seemlessly Form_2 exactly where was Form_1. That probably means Unloading Form_1. The user press a buton, and Form_2 opens up (with Form_1 flushed out of the way). Thanks! Orlanda Coding is a family business

          M Offline
          M Offline
          matthias s 0
          wrote on last edited by
          #4

          Well, what is your application main form? What form do you use in Application.Run()? Or don't you use a MessageLoop? It's still not clear to me what you are actually trying to do. Key question is: Do you need to open Form_2 from Form_1? Or can you just do something like this: Form Form_1 = new Form(); Form Form_2 = new Form(); Form_1.ShowDialog(); Form_2.ShowDialog(); When the first dialog gets dismissed, the second one is shown. hth

          You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)

          www.mattbart.org
          Sonork ID: 100.32002

          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