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 to handle a event in Windows Application

How to handle a event in Windows Application

Scheduled Pinned Locked Moved C#
helptutorial
3 Posts 3 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.
  • P Offline
    P Offline
    pashitech
    wrote on last edited by
    #1

    hi all, i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear, how to do this, do we have any provision to communicate between two forms,--like of Session of webpages, please help me thnx in advance, prashanth,

    S D 2 Replies Last reply
    0
    • P pashitech

      hi all, i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear, how to do this, do we have any provision to communicate between two forms,--like of Session of webpages, please help me thnx in advance, prashanth,

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      pashitech wrote:

      the first form should disappear

      Call the Hide method of the form.

      pashitech wrote:

      do we have any provision to communicate between two forms

      Take a look at this CP article: Passing Values between Forms in .NET 1.x with C# and VB.NET examples[^]


      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

      www.troschuetz.de

      1 Reply Last reply
      0
      • P pashitech

        hi all, i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear, how to do this, do we have any provision to communicate between two forms,--like of Session of webpages, please help me thnx in advance, prashanth,

        D Offline
        D Offline
        Duong Tien Nam
        wrote on last edited by
        #3

        If Form1 is your main form and Form2 is your subform, on the button click event write Form2 f = new Form2(); f.Show(); this.Hide(); Although we should remove memory use for Form1 but I dont know how too :(

        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