StartPosition CenterParent?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric B.

    StartPosition CenterParent?

    I posted about this before but it is still bugging me.

    I am creating an instance of form2 from my form1, and although I have the
    StartPosition set to CenterParent for the form2 it is not appearing there.

    private void preferencesTool StripMenuItem_C lick(object sender,
    EventArgs e)
    {
    Form_Preference s Preferences = new Form_Preference s();
    this.AddOwnedFo rm(Preferences) ;
    Preferences.Sho w();
    }

    Any ideas?

    Eric B.

  • Tom Dacon

    #2
    Re: StartPosition CenterParent?

    Try it with Preferences.Sho w(this).

    Tom Dacon
    Dacon Software Consulting

    "Eric B." <bigbird@sesame street.comwrote in message
    news:09B56AEF-7E64-429E-8FDB-43D3E15DDD90@mi crosoft.com...
    >I posted about this before but it is still bugging me.
    >
    I am creating an instance of form2 from my form1, and although I have the
    StartPosition set to CenterParent for the form2 it is not appearing there.
    >
    private void preferencesTool StripMenuItem_C lick(object sender,
    EventArgs e)
    {
    Form_Preference s Preferences = new Form_Preference s();
    this.AddOwnedFo rm(Preferences) ;
    Preferences.Sho w();
    }
    >
    Any ideas?
    >
    Eric B.
    >

    Comment

    • zacks@construction-imaging.com

      #3
      Re: StartPosition CenterParent?

      On Nov 17, 10:49 am, "Eric B." <bigb...@sesame street.comwrote :
      I posted about this before but it is still bugging me.
      >
      I am creating an instance of form2 from my form1, and although I have the
      StartPosition set to CenterParent for the form2 it is not appearing there..
      >
              private void preferencesTool StripMenuItem_C lick(object sender,
      EventArgs e)
              {
                  Form_Preference s Preferences = new Form_Preference s();
                  this.AddOwnedFo rm(Preferences) ;
                  Preferences.Sho w();
              }
      >
      Any ideas?
      >
      Eric B.
      I had never even heard of the AddOwnedForm method, let alone used it.
      And I show child forms that are centered to their parent all the time
      with no problem.

      Any time a form shows another form, it is automatically linked as the
      parent of the child form, from my experiance.

      Comment

      • Jeff Johnson

        #4
        Re: StartPosition CenterParent?

        <zacks@construc tion-imaging.comwrot e in message
        news:c8f9ef10-ad4f-4273-9269-2916667bff8a@x1 6g2000prn.googl egroups.com...
        I had never even heard of the AddOwnedForm method, let alone used it.
        And I show child forms that are centered to their parent all the time
        with no problem.
        Any time a form shows another form, it is automatically linked as the
        parent of the child form, from my experiance.
        There's a difference between a simple parent/child relationship and an
        "owned form." An owned form always appears above its owner (kind of a
        limited "always on top" scope) and is minimized when its owner is minimized.
        Modeless dialogs like Find behave this way.


        Comment

        • Eric B.

          #5
          Re: StartPosition CenterParent?

          "Jeff Johnson" <i.get@enough.s pamwrote in message
          news:%23NufUJPS JHA.1184@TK2MSF TNGP03.phx.gbl. ..
          <zacks@construc tion-imaging.comwrot e in message
          news:c8f9ef10-ad4f-4273-9269-2916667bff8a@x1 6g2000prn.googl egroups.com...
          >
          >I had never even heard of the AddOwnedForm method, let alone used it.
          >And I show child forms that are centered to their parent all the time
          >with no problem.
          >
          >Any time a form shows another form, it is automatically linked as the
          >parent of the child form, from my experiance.
          >
          There's a difference between a simple parent/child relationship and an
          "owned form." An owned form always appears above its owner (kind of a
          limited "always on top" scope) and is minimized when its owner is
          minimized. Modeless dialogs like Find behave this way.
          Right. It made sense to me for both my Preferences and About forms.

          Eric B.

          Comment

          • Eric B.

            #6
            Re: StartPosition CenterParent?

            "Tom Dacon" <tdacon@communi ty.nospamwrote in message
            news:OAZ5SDNSJH A.1484@TK2MSFTN GP03.phx.gbl...
            Try it with Preferences.Sho w(this).
            >
            Tom Dacon
            Dacon Software Consulting
            Tried that but no luck, thanks anyway :)

            Eric B.



            "Eric B." <bigbird@sesame street.comwrote in message
            news:09B56AEF-7E64-429E-8FDB-43D3E15DDD90@mi crosoft.com...
            >>I posted about this before but it is still bugging me.
            >>
            >I am creating an instance of form2 from my form1, and although I have the
            >StartPositio n set to CenterParent for the form2 it is not appearing
            >there.
            >>
            > private void preferencesTool StripMenuItem_C lick(object sender,
            >EventArgs e)
            > {
            > Form_Preference s Preferences = new Form_Preference s();
            > this.AddOwnedFo rm(Preferences) ;
            > Preferences.Sho w();
            > }
            >>
            >Any ideas?
            >>
            >Eric B.
            >>
            >
            >

            Comment

            • Jeff Johnson

              #7
              Re: StartPosition CenterParent?

              "Eric B." <bigbird@sesame street.comwrote in message
              news:O2cpe5PSJH A.1164@TK2MSFTN GP02.phx.gbl...
              Right. It made sense to me for both my Preferences and About forms.
              Really? I'd make both of those modal. And please, please, please, unless
              you're writing something for graphics designers who've spent their entire
              lives in Photoshop or Quark, call it Options, not Preferences. Preferences
              is so...Mac.


              Comment

              Working...