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. Accessing MDI parent controls through child forms,

Accessing MDI parent controls through child forms,

Scheduled Pinned Locked Moved C#
help
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.
  • N Offline
    N Offline
    Neo_Shehpar
    wrote on last edited by
    #1

    Dear all, i have a problem in accessing the controls on parent mdi form through child form, there are two scenario, 1. Accessing through child form. 2. Accessing through Dialog Form (Modal Forms) which are not child of parent. please if someone have code for the three forms separately, i shall be thankful for that. Bye

    T 1 Reply Last reply
    0
    • N Neo_Shehpar

      Dear all, i have a problem in accessing the controls on parent mdi form through child form, there are two scenario, 1. Accessing through child form. 2. Accessing through Dialog Form (Modal Forms) which are not child of parent. please if someone have code for the three forms separately, i shall be thankful for that. Bye

      T Offline
      T Offline
      Tirthadip
      wrote on last edited by
      #2

      Whenever you are calling a child form from MDI call it like myChild frm1; //myChild is the ID of your child form frm1 = new frm1(); frm1.ShowDialog(this); now when you want to access control of MDI from myChild try this ((myMDI)(this.Owner)).Label1.Text = "Hi"; // myMDI is your MDI form -- modified at 1:37 Friday 30th March, 2007

      Tirtha "A man can ride on your back only when it is bent....."

      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