How to make the right corner closing cross invisible

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon van Beek

    How to make the right corner closing cross invisible

    Dear reader,



    By opening an application I get always the main Access window with the
    closing cross [x] in the above right corner. Is there a possibility to make
    this closing cross invisible?

    All the settings in the Start-up form under Tools are disabled but the
    closing cross in the above right corner is still visible.



    Thanks for any help.

    Kind regards,

    Simon


  • Tom van Stiphout

    #2
    Re: How to make the right corner closing cross invisible

    On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
    <SvanBeekNL@Ver satel.nlwrote:

    That's not impossible, but not easy either. What are you trying to
    accomplish? That users can't close your app? There are other ways to
    do that (e.g. see Cancel argument of Form_Unload). Remember some of
    them will use Task Manager to nuke your app if you go down that way.
    You can intercept that as well, but at an even higher cost.

    So what are you really trying to accomplish?

    -Tom.
    Microsoft Access MVP

    >Dear reader,
    >
    >
    >
    >By opening an application I get always the main Access window with the
    >closing cross [x] in the above right corner. Is there a possibility to make
    >this closing cross invisible?
    >
    >All the settings in the Start-up form under Tools are disabled but the
    >closing cross in the above right corner is still visible.
    >
    >
    >
    >Thanks for any help.
    >
    >Kind regards,
    >
    >Simon
    >

    Comment

    • Simon van Beek

      #3
      Re: How to make the right corner closing cross invisible

      Tom,

      I try to accomplish that users can't close the application with this button
      [x] but
      they have to close the application via a form.

      -Simon
      "Tom van Stiphout" <no.spam.tom774 4@cox.netwrote in message
      news:dvp6b4d95e sjkoho5f5kna4k9 u7b2dksii@4ax.c om...
      On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
      <SvanBeekNL@Ver satel.nlwrote:
      >
      That's not impossible, but not easy either. What are you trying to
      accomplish? That users can't close your app? There are other ways to
      do that (e.g. see Cancel argument of Form_Unload). Remember some of
      them will use Task Manager to nuke your app if you go down that way.
      You can intercept that as well, but at an even higher cost.
      >
      So what are you really trying to accomplish?
      >
      -Tom.
      Microsoft Access MVP
      >
      >
      >>Dear reader,
      >>
      >>
      >>
      >>By opening an application I get always the main Access window with the
      >>closing cross [x] in the above right corner. Is there a possibility to
      >>make
      >>this closing cross invisible?
      >>
      >>All the settings in the Start-up form under Tools are disabled but the
      >>closing cross in the above right corner is still visible.
      >>
      >>
      >>
      >>Thanks for any help.
      >>
      >>Kind regards,
      >>
      >>Simon
      >>

      Comment

      • Phil Stanton

        #4
        Re: How to make the right corner closing cross invisible

        I hace a form ( Very Very old switchboard form probably from Access 2.)

        This is always sitting behind anything else that is open. Briefly it has a
        text box "CloseOK" which is either set to 1 0r 0 and a command button
        "CloseDB" I hide the CloseOK Text box by making the border transparent and
        the font colour the same as the background ans sometimes lock the control

        CloseOK is set to 0 on opening the form

        Then there is this bit of code which stops the form and consequently the Db
        from closing

        Private Sub Form_Unload(Can cel As Integer)

        If CloseOK = 0 Then ' Must keep the switcboard open
        DoCmd.CancelEve nt
        End If
        End Sub

        On pressing the CloseDB button we have

        Sub CloseDB_Click
        CloseOK = 1 ' OK to close database
        RunCommand acCmdExit
        Exit Sub

        In practice I have all sorts or routines that check whether I am using an
        MDB file (for developement purposes) where I can still access the CloseOK
        control and an MDE file where it is not accessible .... but there I agree
        with Tom , it does get complicated

        HTH

        Phil



        "Simon van Beek" <SvanBeekNL@Ver satel.nlwrote in message
        news:48b38f25$0 $13008$bf4948fe @news.tele2.nl. ..
        Tom,
        >
        I try to accomplish that users can't close the application with this
        button [x] but
        they have to close the application via a form.
        >
        -Simon
        "Tom van Stiphout" <no.spam.tom774 4@cox.netwrote in message
        news:dvp6b4d95e sjkoho5f5kna4k9 u7b2dksii@4ax.c om...
        >On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
        ><SvanBeekNL@Ve rsatel.nlwrote:
        >>
        >That's not impossible, but not easy either. What are you trying to
        >accomplish? That users can't close your app? There are other ways to
        >do that (e.g. see Cancel argument of Form_Unload). Remember some of
        >them will use Task Manager to nuke your app if you go down that way.
        >You can intercept that as well, but at an even higher cost.
        >>
        >So what are you really trying to accomplish?
        >>
        >-Tom.
        >Microsoft Access MVP
        >>
        >>
        >>>Dear reader,
        >>>
        >>>
        >>>
        >>>By opening an application I get always the main Access window with the
        >>>closing cross [x] in the above right corner. Is there a possibility to
        >>>make
        >>>this closing cross invisible?
        >>>
        >>>All the settings in the Start-up form under Tools are disabled but the
        >>>closing cross in the above right corner is still visible.
        >>>
        >>>
        >>>
        >>>Thanks for any help.
        >>>
        >>>Kind regards,
        >>>
        >>>Simon
        >>>
        >
        >

        Comment

        • Keith Wilby

          #5
          Re: How to make the right corner closing cross invisible

          "Simon van Beek" <SvanBeekNL@Ver satel.nlwrote in message
          news:48b38f25$0 $13008$bf4948fe @news.tele2.nl. ..
          Tom,
          >
          I try to accomplish that users can't close the application with this
          button [x] but
          they have to close the application via a form.
          >
          Is this because you want an event to run when the form closes? The easist
          way to force this to happen is the hide the database window using the
          Tools/Startup options. Also, check out the "popup" and "modal" form
          properties.

          Regards,
          Keith.

          Comment

          • lyle fairfield

            #6
            Re: How to make the right corner closing cross invisible

            I wonder why MS put that silly close button there anyway.
            Why would we want a GUI common to all our applications?
            Some developers envision their own GUI that is so superior to the
            Windows standard that its implementation makes sacrificing uniformity
            quite worthwhile.

            What I can't understand is why there is an inverse relationship
            between the competence of the poster and this design brilliance. How
            can one be sufficiently creative to generate these new design ideas
            without actually knowing anything about how the old is effected, or
            how the new might be implemented? This is where I fail. Having
            struggled with the Windows API extensively for ten or twelve years, I
            can pretty much do whatever I want with the GUI but I never feel
            motivated to do so. I have this quaint notion that if Sharon can close
            a Word document by clicking a red X in its upper right hand corner, it
            make sense for Sharon to be able to close Access applications and
            forms by clicking red X's in their upper right hand corner.

            I suppose a very few might have painted-themselves-into-a-corner
            through idiotic design and extraordinarily foolish coding. But you
            only see that in 95% of the posts here.

            Well ... 99.44% max!

            On Aug 26, 1:05 am, "Simon van Beek" <SvanBee...@Ver satel.nlwrote:
            Tom,
            >
            I try to accomplish that users can't close the application with this button
            [x] but
            they have to close the application via a form.
            >
            -Simon
            "Tom van Stiphout" <no.spam.tom7.. .@cox.netwrote in messagenews:dvp 6b4d95esjkoho5f 5kna4k9u7b2dksi i@4ax.com...
            >
            >
            >
            On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
            <SvanBee...@Ver satel.nlwrote:
            >
            That's not impossible, but not easy either. What are you trying to
            accomplish? That users can't close your app? There are other ways to
            do that (e.g. see Cancel argument of Form_Unload). Remember some of
            them will use Task Manager to nuke your app if you go down that way.
            You can intercept that as well, but at an even higher cost.
            >
            So what are you really trying to accomplish?
            >
            -Tom.
            Microsoft Access MVP
            >
            >Dear reader,
            >
            >By opening an application I get always the main Access window with the
            >closing cross [x] in the above right corner. Is there a possibility to
            >make
            >this closing cross invisible?
            >
            >All the settings in the Start-up form under Tools are disabled but the
            >closing cross in the above right corner is still visible.
            >
            >Thanks for any help.
            >
            >Kind regards,
            >
            >Simon

            Comment

            • Simon van Beek

              #7
              Re: How to make the right corner closing cross invisible

              Dear all,



              In the form Tools/Startup….. I can’t find a tick box to make the Windows
              window invisible.

              And now I am look for code how to make the Windows window invisible so the
              user can only close the application via a form.



              -Simon

              "Keith Wilby" <here@there.com wrote in message
              news:48b3c4ff$1 _1@glkas0286.gr eenlnk.net...
              "Simon van Beek" <SvanBeekNL@Ver satel.nlwrote in message
              news:48b38f25$0 $13008$bf4948fe @news.tele2.nl. ..
              >Tom,
              >>
              >I try to accomplish that users can't close the application with this
              >button [x] but
              >they have to close the application via a form.
              >>
              >
              Is this because you want an event to run when the form closes? The easist
              way to force this to happen is the hide the database window using the
              Tools/Startup options. Also, check out the "popup" and "modal" form
              properties.
              >
              Regards,
              Keith.

              Comment

              • Tom van Stiphout

                #8
                Re: How to make the right corner closing cross invisible

                On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
                <SvanBeekNL@Ver satel.nlwrote:

                Hi Simon,
                I would phrase it a bit more elegantly than Lyle, but I do feel he is
                right on the substance. It is REALLY unusual to require this sort of
                functionality; there usually is a MUCH better and more compatible
                alternative.
                I hope you won't be offended and will take the criticism to heart.
                Perhaps you will post a new message that starts with: "I want to do
                ABC and the best way I can think of doing that is to diable the Close
                Application button. Can you suggest better alternatives?"

                -Tom.
                Microsoft Access MVP

                >Tom,
                >
                >I try to accomplish that users can't close the application with this button
                >[x] but
                >they have to close the application via a form.
                >
                >-Simon
                >"Tom van Stiphout" <no.spam.tom774 4@cox.netwrote in message
                >news:dvp6b4d95 esjkoho5f5kna4k 9u7b2dksii@4ax. com...
                >On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
                ><SvanBeekNL@Ve rsatel.nlwrote:
                >>
                >That's not impossible, but not easy either. What are you trying to
                >accomplish? That users can't close your app? There are other ways to
                >do that (e.g. see Cancel argument of Form_Unload). Remember some of
                >them will use Task Manager to nuke your app if you go down that way.
                >You can intercept that as well, but at an even higher cost.
                >>
                >So what are you really trying to accomplish?
                >>
                >-Tom.
                >Microsoft Access MVP
                >>
                >>
                >>>Dear reader,
                >>>
                >>>
                >>>
                >>>By opening an application I get always the main Access window with the
                >>>closing cross [x] in the above right corner. Is there a possibility to
                >>>make
                >>>this closing cross invisible?
                >>>
                >>>All the settings in the Start-up form under Tools are disabled but the
                >>>closing cross in the above right corner is still visible.
                >>>
                >>>
                >>>
                >>>Thanks for any help.
                >>>
                >>>Kind regards,
                >>>
                >>>Simon
                >>>
                >

                Comment

                • Simon van Beek

                  #9
                  Re: How to make the right corner closing cross invisible

                  Tom,

                  The only what I can say now is Lyle is a little bit frustrated and he needs
                  professional help and we are not able to help him.

                  Kind regards,

                  Simon



                  "Tom van Stiphout" <no.spam.tom774 4@cox.netwrote in message
                  news:6lc9b450pn 816rc5fiefg9p30 c2ifj1r5f@4ax.c om...
                  On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
                  <SvanBeekNL@Ver satel.nlwrote:
                  >
                  Hi Simon,
                  I would phrase it a bit more elegantly than Lyle, but I do feel he is
                  right on the substance. It is REALLY unusual to require this sort of
                  functionality; there usually is a MUCH better and more compatible
                  alternative.
                  I hope you won't be offended and will take the criticism to heart.
                  Perhaps you will post a new message that starts with: "I want to do
                  ABC and the best way I can think of doing that is to diable the Close
                  Application button. Can you suggest better alternatives?"
                  >
                  -Tom.
                  Microsoft Access MVP
                  >
                  >
                  >>Tom,
                  >>
                  >>I try to accomplish that users can't close the application with this
                  >>button
                  >>[x] but
                  >>they have to close the application via a form.
                  >>
                  >>-Simon
                  >>"Tom van Stiphout" <no.spam.tom774 4@cox.netwrote in message
                  >>news:dvp6b4d9 5esjkoho5f5kna4 k9u7b2dksii@4ax .com...
                  >>On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
                  >><SvanBeekNL@V ersatel.nlwrote :
                  >>>
                  >>That's not impossible, but not easy either. What are you trying to
                  >>accomplish? That users can't close your app? There are other ways to
                  >>do that (e.g. see Cancel argument of Form_Unload). Remember some of
                  >>them will use Task Manager to nuke your app if you go down that way.
                  >>You can intercept that as well, but at an even higher cost.
                  >>>
                  >>So what are you really trying to accomplish?
                  >>>
                  >>-Tom.
                  >>Microsoft Access MVP
                  >>>
                  >>>
                  >>>>Dear reader,
                  >>>>
                  >>>>
                  >>>>
                  >>>>By opening an application I get always the main Access window with the
                  >>>>closing cross [x] in the above right corner. Is there a possibility to
                  >>>>make
                  >>>>this closing cross invisible?
                  >>>>
                  >>>>All the settings in the Start-up form under Tools are disabled but the
                  >>>>closing cross in the above right corner is still visible.
                  >>>>
                  >>>>
                  >>>>
                  >>>>Thanks for any help.
                  >>>>
                  >>>>Kind regards,
                  >>>>
                  >>>>Simon
                  >>>>
                  >>

                  Comment

                  • lyle fairfield

                    #10
                    Re: How to make the right corner closing cross invisible

                    Speaking of "profession al" help someone wrote EnableTitleBarC ontrols
                    and DisableTitleBar Controls procedures and published them in CDMA back
                    in the previous century.


                    Oh, what a dilemma this is! He wrote EnableCloseButt on and
                    DisableCloseBut ton procedures too.


                    Who could it have been?

                    They're not exactly what you want as they act on the Access window
                    instead of a form but they could easily be modified by anyone who
                    wasn't bone-dead lazy and bucket-of-rocks stupid, to meet your
                    request. I guess that explains why I didn't suggest them earlier.

                    Did I mention that the procedure writer said in the same thread, "I
                    have no idea why anyone Would_Want to do this. (I'm assuming there
                    must be some way to close, so why not let Access do it in what appears
                    to be a safe way)"? Right now in 2008 the bucket-of-rocks stupid
                    hypothesis seems promising.

                    On Aug 27, 1:48 am, "Simon van Beek" <SvanBee...@Ver satel.nlwrote:
                    Tom,
                    >
                    The only what I can say now is Lyle is a little bit frustrated and he needs
                    professional help and we are not able to help him.
                    >
                    Kind regards,
                    >
                    Simon
                    >
                    "Tom van Stiphout" <no.spam.tom7.. .@cox.netwrote in messagenews:6lc 9b450pn816rc5fi efg9p30c2ifj1r5 f@4ax.com...
                    >
                    >
                    >
                    On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
                    <SvanBee...@Ver satel.nlwrote:
                    >
                    Hi Simon,
                    I would phrase it a bit more elegantly than Lyle, but I do feel he is
                    right on the substance. It is REALLY unusual to require this sort of
                    functionality; there usually is a MUCH better and more compatible
                    alternative.
                    I hope you won't be offended and will take the criticism to heart.
                    Perhaps you will post a new message that starts with: "I want to do
                    ABC and the best way I can think of doing that is to diable the Close
                    Application button. Can you suggest better alternatives?"
                    >
                    -Tom.
                    Microsoft Access MVP
                    >
                    >Tom,
                    >
                    >I try to accomplish that users can't close the application with this
                    >button
                    >[x] but
                    >they have to close the application via a form.
                    >
                    >-Simon
                    >"Tom van Stiphout" <no.spam.tom7.. .@cox.netwrote in message
                    >news:dvp6b4d95 esjkoho5f5kna4k 9u7b2dksii@4ax. com...
                    >On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
                    ><SvanBee...@Ve rsatel.nlwrote:
                    >
                    >That's not impossible, but not easy either. What are you trying to
                    >accomplish? That users can't close your app? There are other ways to
                    >do that (e.g. see Cancel argument of Form_Unload). Remember some of
                    >them will use Task Manager to nuke your app if you go down that way.
                    >You can intercept that as well, but at an even higher cost.
                    >
                    >So what are you really trying to accomplish?
                    >
                    >-Tom.
                    >Microsoft Access MVP
                    >
                    >>>Dear reader,
                    >
                    >>>By opening an application I get always the main Access window with the
                    >>>closing cross [x] in the above right corner. Is there a possibility to
                    >>>make
                    >>>this closing cross invisible?
                    >
                    >>>All the settings in the Start-up form under Tools are disabled but the
                    >>>closing cross in the above right corner is still visible.
                    >
                    >>>Thanks for any help.
                    >
                    >>>Kind regards,
                    >
                    >>>Simon

                    Comment

                    • Phil Stanton

                      #11
                      Re: How to make the right corner closing cross invisible

                      What a long winded tale this is.

                      The reason that I have stopped the normal closing of a form (& Db) is that I
                      am using Peters "ShrinkerStretc her to resize a form and it's controls. If I
                      have modified a form in design view, switched to form view and save the
                      form, the size of every control gets changed. So it is essential that a
                      modified form can only be closed and saved from desigh view, not form view.

                      Maybe you did in in anticipation of things to come.

                      Phil


                      "lyle fairfield" <lyle.fairfield @gmail.comwrote in message
                      news:a3fd6e4d-d9fc-48ee-889d-38a7f42b8eb5@56 g2000hsm.google groups.com...
                      Speaking of "profession al" help someone wrote EnableTitleBarC ontrols
                      and DisableTitleBar Controls procedures and published them in CDMA back
                      in the previous century.


                      Oh, what a dilemma this is! He wrote EnableCloseButt on and
                      DisableCloseBut ton procedures too.


                      Who could it have been?

                      They're not exactly what you want as they act on the Access window
                      instead of a form but they could easily be modified by anyone who
                      wasn't bone-dead lazy and bucket-of-rocks stupid, to meet your
                      request. I guess that explains why I didn't suggest them earlier.

                      Did I mention that the procedure writer said in the same thread, "I
                      have no idea why anyone Would_Want to do this. (I'm assuming there
                      must be some way to close, so why not let Access do it in what appears
                      to be a safe way)"? Right now in 2008 the bucket-of-rocks stupid
                      hypothesis seems promising.

                      On Aug 27, 1:48 am, "Simon van Beek" <SvanBee...@Ver satel.nlwrote:
                      Tom,
                      >
                      The only what I can say now is Lyle is a little bit frustrated and he
                      needs
                      professional help and we are not able to help him.
                      >
                      Kind regards,
                      >
                      Simon
                      >
                      "Tom van Stiphout" <no.spam.tom7.. .@cox.netwrote in
                      messagenews:6lc 9b450pn816rc5fi efg9p30c2ifj1r5 f@4ax.com...
                      >
                      >
                      >
                      On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
                      <SvanBee...@Ver satel.nlwrote:
                      >
                      Hi Simon,
                      I would phrase it a bit more elegantly than Lyle, but I do feel he is
                      right on the substance. It is REALLY unusual to require this sort of
                      functionality; there usually is a MUCH better and more compatible
                      alternative.
                      I hope you won't be offended and will take the criticism to heart.
                      Perhaps you will post a new message that starts with: "I want to do
                      ABC and the best way I can think of doing that is to diable the Close
                      Application button. Can you suggest better alternatives?"
                      >
                      -Tom.
                      Microsoft Access MVP
                      >
                      >Tom,
                      >
                      >I try to accomplish that users can't close the application with this
                      >button
                      >[x] but
                      >they have to close the application via a form.
                      >
                      >-Simon
                      >"Tom van Stiphout" <no.spam.tom7.. .@cox.netwrote in message
                      >news:dvp6b4d95 esjkoho5f5kna4k 9u7b2dksii@4ax. com...
                      >On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
                      ><SvanBee...@Ve rsatel.nlwrote:
                      >
                      >That's not impossible, but not easy either. What are you trying to
                      >accomplish? That users can't close your app? There are other ways to
                      >do that (e.g. see Cancel argument of Form_Unload). Remember some of
                      >them will use Task Manager to nuke your app if you go down that way.
                      >You can intercept that as well, but at an even higher cost.
                      >
                      >So what are you really trying to accomplish?
                      >
                      >-Tom.
                      >Microsoft Access MVP
                      >
                      >>>Dear reader,
                      >
                      >>>By opening an application I get always the main Access window with the
                      >>>closing cross [x] in the above right corner. Is there a possibility to
                      >>>make
                      >>>this closing cross invisible?
                      >
                      >>>All the settings in the Start-up form under Tools are disabled but the
                      >>>closing cross in the above right corner is still visible.
                      >
                      >>>Thanks for any help.
                      >
                      >>>Kind regards,
                      >
                      >>>Simon

                      Comment

                      • CDMAPoster@fortunejames.com

                        #12
                        Re: How to make the right corner closing cross invisible

                        On Aug 27, 6:51 am, lyle fairfield <lyle.fairfi... @gmail.comwrote :
                        Speaking of "profession al" help someone wrote EnableTitleBarC ontrols
                        and DisableTitleBar Controls procedures and published them in CDMA back
                        in the previous century.http://groups.google.com/group/comp..../msg/96a49834e...
                        >
                        Oh, what a dilemma this is! He wrote EnableCloseButt on and
                        DisableCloseBut ton procedures too.http://groups.google.com/group/comp..../msg/6149d160d...
                        >
                        Who could it have been?
                        It wasn't this James. C.f.:



                        "I found some code somewhere (perhaps Jeff's site), "

                        Even though I posted to CDMA in 1994,



                        the code I found was implemented after 1999.

                        James A. Fortune
                        CDMAPoster@Fort uneJames.com

                        Comment

                        Working...