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. How and where to place returncode for a form or dialog ?

How and where to place returncode for a form or dialog ?

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.
  • F Offline
    F Offline
    fracalifa
    wrote on last edited by
    #1

    Hi everybody, I want to return a result from a client form or dialog (no standard results like dialogresult.OK or somthink like that) but my own resultcodes. In which memberfunc. do I have to place the (return)code so that the calling parent can get the returnresult. Is it only possible with dialogs or in forms too. Thank you for helping. fracalifa

    D 1 Reply Last reply
    0
    • F fracalifa

      Hi everybody, I want to return a result from a client form or dialog (no standard results like dialogresult.OK or somthink like that) but my own resultcodes. In which memberfunc. do I have to place the (return)code so that the calling parent can get the returnresult. Is it only possible with dialogs or in forms too. Thank you for helping. fracalifa

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

      If you call a dialog or form from the parent, that dialog or form won't be destroyed until the calling function ends, or you explicitly call the destructor. This means that any variables, or functions, will still be accessible. Just call a public function to get return values, or make the variables public. - 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