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. Multiple Forms

Multiple Forms

Scheduled Pinned Locked Moved C#
question
2 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.
  • S Offline
    S Offline
    Shashidharreddy
    wrote on last edited by
    #1

    In my current project i have two forms say FormA and FormB in which each form performs some specific task, how can i shift between the forms at a time. As I said that I want to shift between the forms. It means that I have a function with two parameters if first parameter is null and second parameter is having some value it should call FormB. And Vice versa i.e. abc( Null, 10) here the first parameter is null and the second is value 10. Then it should call FormB similarly abc (10, Null) here the first parameter value is 10 and the second is Null. Then it should call FormA. How can i do it.

    C 1 Reply Last reply
    0
    • S Shashidharreddy

      In my current project i have two forms say FormA and FormB in which each form performs some specific task, how can i shift between the forms at a time. As I said that I want to shift between the forms. It means that I have a function with two parameters if first parameter is null and second parameter is having some value it should call FormB. And Vice versa i.e. abc( Null, 10) here the first parameter is null and the second is value 10. Then it should call FormB similarly abc (10, Null) here the first parameter value is 10 and the second is Null. Then it should call FormA. How can i do it.

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

      What do you mean - show one at a time ? You can have a main window that spawns form1, and when form1 closes, spawns form2. Or you can have Form1 the main window, and a next button that hides form1 and shows form2. It's hard to say, without knowing more specifics. Christian Graus - Microsoft MVP - C++

      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