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. swap froms

swap froms

Scheduled Pinned Locked Moved C#
tutorialcsharpvisual-studiocomquestion
3 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.
  • F Offline
    F Offline
    faladrim
    wrote on last edited by
    #1

    hi, i need to swap between forms, im looking at 3 screens on (yes realy screens attached to pc) on each screen there is a different form, but in a menu i can choose diffent forms to look at, only the 3 most always remain the same, so if i swap from form on the first screen it needs to close the form that was there befor and check if its not the form form screen 3, realy a bit fussy.... i found a example but its in vs 2003: http://www.codeproject.com/csharp/applicationcontextdemo.asp[^] and i'm not sure how to implement this in my existing application. any body has tips?? thx

    C 1 Reply Last reply
    0
    • F faladrim

      hi, i need to swap between forms, im looking at 3 screens on (yes realy screens attached to pc) on each screen there is a different form, but in a menu i can choose diffent forms to look at, only the 3 most always remain the same, so if i swap from form on the first screen it needs to close the form that was there befor and check if its not the form form screen 3, realy a bit fussy.... i found a example but its in vs 2003: http://www.codeproject.com/csharp/applicationcontextdemo.asp[^] and i'm not sure how to implement this in my existing application. any body has tips?? thx

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

      faladrim wrote:

      (yes realy screens attached to pc)

      I have 5 :-) So you have several different forms in your app and you want to change which one has the focus ? Or you have several different apps running ? If Marc's 2003 code does what you want, it will work in 2005 as well.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      F 1 Reply Last reply
      0
      • C Christian Graus

        faladrim wrote:

        (yes realy screens attached to pc)

        I have 5 :-) So you have several different forms in your app and you want to change which one has the focus ? Or you have several different apps running ? If Marc's 2003 code does what you want, it will work in 2005 as well.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        F Offline
        F Offline
        faladrim
        wrote on last edited by
        #3

        thx, it's more like a perant child thing, i have one app with several forms one is a visualisation of a factory, this is the one that always should stay and in a menu bar you can choose several others like: logs, history, orders, alarms, .... these are changeble on the two other screens i think for this i should work with parent child not? the perant is the form with the menu bar, and all the others are the childern you think this shoud work? ill know it monday :p -->> its weekend :D

        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