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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. child form [modified]

child form [modified]

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

    Hi all, I create a second form on my main form like this. private void btnEntryForm_Click(object sender, EventArgs e) { EntryForm frm = new EntryForm(); frm.Show(); } Then I want my second form behave like any other control. That means when I resize, move, minimize or maximize,etc. the main form I want my second form keep its location on the main form same and follow all the other events, like an ordinary control on the main form. How ? Thanks in advance Muharrem -- modified at 13:19 Sunday 17th December, 2006

    A 1 Reply Last reply
    0
    • M muharrem

      Hi all, I create a second form on my main form like this. private void btnEntryForm_Click(object sender, EventArgs e) { EntryForm frm = new EntryForm(); frm.Show(); } Then I want my second form behave like any other control. That means when I resize, move, minimize or maximize,etc. the main form I want my second form keep its location on the main form same and follow all the other events, like an ordinary control on the main form. How ? Thanks in advance Muharrem -- modified at 13:19 Sunday 17th December, 2006

      A Offline
      A Offline
      Alper Camel
      wrote on last edited by
      #2

      Hi I advice you to write a inherited class from windows.form class, then add any property in that class. even you can add eventhandlers or use predefined eventhandlers like; form_resized += new EventHandler... you can handle them from your parent form that is your class ;) hope it helps. Cheers.

      Music Resources

      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