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. closing forms

closing forms

Scheduled Pinned Locked Moved C#
questionhelplearning
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.
  • V Offline
    V Offline
    Vineet Rajan
    wrote on last edited by
    #1

    :( hi all i am working on multiple forms in my application. i want to close some forms during the course of the application. i create an object of the form and aply of the close method. but this does not seem to work becasue it closes that instance of the newly created object. how can i close the already runing instance of the form from another form? please help regards vineet

    D 1 Reply Last reply
    0
    • V Vineet Rajan

      :( hi all i am working on multiple forms in my application. i want to close some forms during the course of the application. i create an object of the form and aply of the close method. but this does not seem to work becasue it closes that instance of the newly created object. how can i close the already runing instance of the form from another form? please help regards vineet

      D Offline
      D Offline
      DougW48
      wrote on last edited by
      #2

      When you create your forms, keep the reference of that form in your calling class. This is the object that you'll want to close. When you create a new variable, you are just creating a new form object, and it is unrelated to anything you already have open. - Doug

      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