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. Sub Form

Sub Form

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • R Offline
    R Offline
    rockNroll
    wrote on last edited by
    #1

    on pressing button in Form 1, it opens FORM2 and hide itself. But the problem is the FORM2 pops up in different location of the screen..and when i exit that, FORM1 pops up but thats in different location.Whereas i want this to be at the same location. Just looked over properties to set the location but even when i set the same location on both the forms, it results in poping up at different place. What can be the reason for this ? I am sure its one of the easiest thing to do but sometime that gives you heading too... Thanks

    L 1 Reply Last reply
    0
    • R rockNroll

      on pressing button in Form 1, it opens FORM2 and hide itself. But the problem is the FORM2 pops up in different location of the screen..and when i exit that, FORM1 pops up but thats in different location.Whereas i want this to be at the same location. Just looked over properties to set the location but even when i set the same location on both the forms, it results in poping up at different place. What can be the reason for this ? I am sure its one of the easiest thing to do but sometime that gives you heading too... Thanks

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, setting Form.Location only works the way you want if you first set Form.StartPosition=FormStartPosition.Manual; :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


      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