Home All Groups Group Topic Archive Search About
Author
28 Feb 2007 2:45 PM
Ron
After I create an .exe file of a program which includes within its menu
options a developers button, when clicked it will reveal a form can it then
allow buttons which are hidden to the user to carry out functions?
I could have two versions of the form but is there a better way?

Author
28 Feb 2007 2:57 PM
Rick Rothstein (MVP - VB)
> After I create an .exe file of a program which includes within its menu
> options a developers button, when clicked it will reveal a form can it
> then
> allow buttons which are hidden to the user to carry out functions?
> I could have two versions of the form but is there a better way?

Just place the developer's buttons on the form with their Visible property
set to False initially (set this at design time). Then, when the developer
option is selected, the first thing to do is set these button's Visible
property to True so the developer can see them. This next step is
important... when the form is closed, set these button's Visible property
back to False so they will be hidden to non-developers the next time the
form is displayed. Of course, put all of the code necessary to make these
buttons function correctly in at design time.

Rick
Author
1 Mar 2007 7:51 AM
J French
On Wed, 28 Feb 2007 09:57:32 -0500, "Rick Rothstein \(MVP - VB\)"
<rickNOSPAMnews@NOSPAMcomcast.net> wrote:

Show quoteHide quote
>> After I create an .exe file of a program which includes within its menu
>> options a developers button, when clicked it will reveal a form can it
>> then
>> allow buttons which are hidden to the user to carry out functions?
>> I could have two versions of the form but is there a better way?
>
>Just place the developer's buttons on the form with their Visible property
>set to False initially (set this at design time). Then, when the developer
>option is selected, the first thing to do is set these button's Visible
>property to True so the developer can see them. This next step is
>important... when the form is closed, set these button's Visible property
>back to False so they will be hidden to non-developers the next time the
>form is displayed. Of course, put all of the code necessary to make these
>buttons function correctly in at design time.

I would have a Frame with the buttons on it
Author
1 Mar 2007 8:02 AM
Ron
Hi Rick
Thanks for your post, What is the best way to protect the developers button
from being used by all, my guess password, is there a good procedure for
setting passwords?

Show quoteHide quote
"Rick Rothstein (MVP - VB)" wrote:

> > After I create an .exe file of a program which includes within its menu
> > options a developers button, when clicked it will reveal a form can it
> > then
> > allow buttons which are hidden to the user to carry out functions?
> > I could have two versions of the form but is there a better way?
>
> Just place the developer's buttons on the form with their Visible property
> set to False initially (set this at design time). Then, when the developer
> option is selected, the first thing to do is set these button's Visible
> property to True so the developer can see them. This next step is
> important... when the form is closed, set these button's Visible property
> back to False so they will be hidden to non-developers the next time the
> form is displayed. Of course, put all of the code necessary to make these
> buttons function correctly in at design time.
>
> Rick
>
>
>
Author
1 Mar 2007 8:37 AM
Ralph
"Ron" <R**@discussions.microsoft.com> wrote in message
news:8C112039-543C-4060-8884-C53EEB6D0F62@microsoft.com...
> Hi Rick
> Thanks for your post, What is the best way to protect the developers
button
> from being used by all, my guess password, is there a good procedure for
> setting passwords?
>
> > <snipped>

You don't need anything too complex. Have you ever seen any "Easter Eggs"
for various Windows applications?

You could simply hold down the Shift and Control keys while clicking a
particular spot on an Icon on the About box, hold the Shift key while doing
a right-click on the lower left of the form, etc.
Author
1 Mar 2007 10:02 AM
Ron
Hi Ralph
Thanks, sorry I do not think I have seen "Easter Eggs" on Windows apps,
sounds like a good idea can you give me a sample to work from please?

Show quoteHide quote
"Ralph" wrote:

>
> "Ron" <R**@discussions.microsoft.com> wrote in message
> news:8C112039-543C-4060-8884-C53EEB6D0F62@microsoft.com...
> > Hi Rick
> > Thanks for your post, What is the best way to protect the developers
> button
> > from being used by all, my guess password, is there a good procedure for
> > setting passwords?
> >
> > > <snipped>
>
> You don't need anything too complex. Have you ever seen any "Easter Eggs"
> for various Windows applications?
>
> You could simply hold down the Shift and Control keys while clicking a
> particular spot on an Icon on the About box, hold the Shift key while doing
> a right-click on the lower left of the form, etc.
>
>
>
Author
1 Mar 2007 11:20 AM
J French
On Thu, 1 Mar 2007 02:02:06 -0800, =?Utf-8?B?Um9u?=
<R**@discussions.microsoft.com> wrote:

>Hi Ralph
>Thanks, sorry I do not think I have seen "Easter Eggs" on Windows apps,
>sounds like a good idea can you give me a sample to work from please?

Try this - you can make it a lot more picky

Option Explicit

Private Sub Form_Load()
   Me.Caption = "Hold down Shift and Right Click Form 3 times"
End Sub

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
   Static HoldTimer!, Count&

   If Shift And vbShiftMask = vbShiftMask Then
      If Button = vbRightButton Then
         Beep
         ' First Click
         If Abs(Timer - HoldTimer) > 2 Then
            HoldTimer = Timer
            Count = 1
            Me.Caption = Str$(Count)
            Exit Sub
         End If
         ' 2nd / 3rd Click
         If (Timer - HoldTimer) < 2 Then
            Count = Count + 1
            Me.Caption = Str$(Count)
            If Count = 3 Then
               MsgBox "BOO!"
            End If
         End If
      End If
   End If

End Sub
Author
1 Mar 2007 5:35 PM
Ron
Hi Thanks for your post I was able to get what I wanted. I now have a quirky
situation, my keyboard has changed when I hold down the Shift Key to get the
@ sign I get the " instead. Any ideas?

Show quoteHide quote
"J French" wrote:

> On Thu, 1 Mar 2007 02:02:06 -0800, =?Utf-8?B?Um9u?=
> <R**@discussions.microsoft.com> wrote:
>
> >Hi Ralph
> >Thanks, sorry I do not think I have seen "Easter Eggs" on Windows apps,
> >sounds like a good idea can you give me a sample to work from please?
>
> Try this - you can make it a lot more picky
>
> Option Explicit
>
> Private Sub Form_Load()
>    Me.Caption = "Hold down Shift and Right Click Form 3 times"
> End Sub
>
> Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As
> Single, Y As Single)
>    Static HoldTimer!, Count&
>   
>    If Shift And vbShiftMask = vbShiftMask Then
>       If Button = vbRightButton Then
>          Beep
>          ' First Click
>          If Abs(Timer - HoldTimer) > 2 Then
>             HoldTimer = Timer
>             Count = 1
>             Me.Caption = Str$(Count)
>             Exit Sub
>          End If
>          ' 2nd / 3rd Click
>          If (Timer - HoldTimer) < 2 Then
>             Count = Count + 1
>             Me.Caption = Str$(Count)
>             If Count = 3 Then
>                MsgBox "BOO!"
>             End If
>          End If
>       End If
>    End If
>   
> End Sub
>
>
Author
1 Mar 2007 6:13 PM
Robert Morley
You've probably switched to a different keyboard layout.  The default key to
switch is the Left-Alt key and the Left-Shift key held down together.  If
you want a more visible way of checking which keyboard layout you're using,
use Control Panel, Keyboard to switch (although the language will usually
also be displayed in your system tray, but the Control Panel methoid is
pretty much guaranteed to work).


Rob

Show quoteHide quote
"Ron" <R**@discussions.microsoft.com> wrote in message
news:44F0CE92-B39C-4A55-A326-023C0A4DC4F8@microsoft.com...
> Hi Thanks for your post I was able to get what I wanted. I now have a
> quirky
> situation, my keyboard has changed when I hold down the Shift Key to get
> the
> @ sign I get the " instead. Any ideas?
>
> "J French" wrote:
>
>> On Thu, 1 Mar 2007 02:02:06 -0800, =?Utf-8?B?Um9u?=
>> <R**@discussions.microsoft.com> wrote:
>>
>> >Hi Ralph
>> >Thanks, sorry I do not think I have seen "Easter Eggs" on Windows apps,
>> >sounds like a good idea can you give me a sample to work from please?
>>
>> Try this - you can make it a lot more picky
>>
>> Option Explicit
>>
>> Private Sub Form_Load()
>>    Me.Caption = "Hold down Shift and Right Click Form 3 times"
>> End Sub
>>
>> Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As
>> Single, Y As Single)
>>    Static HoldTimer!, Count&
>>
>>    If Shift And vbShiftMask = vbShiftMask Then
>>       If Button = vbRightButton Then
>>          Beep
>>          ' First Click
>>          If Abs(Timer - HoldTimer) > 2 Then
>>             HoldTimer = Timer
>>             Count = 1
>>             Me.Caption = Str$(Count)
>>             Exit Sub
>>          End If
>>          ' 2nd / 3rd Click
>>          If (Timer - HoldTimer) < 2 Then
>>             Count = Count + 1
>>             Me.Caption = Str$(Count)
>>             If Count = 3 Then
>>                MsgBox "BOO!"
>>             End If
>>          End If
>>       End If
>>    End If
>>
>> End Sub
>>
>>
Author
1 Mar 2007 6:19 PM
J French
On Thu, 1 Mar 2007 09:35:20 -0800, =?Utf-8?B?Um9u?=
<R**@discussions.microsoft.com> wrote:

>Hi Thanks for your post I was able to get what I wanted. I now have a quirky
>situation, my keyboard has changed when I hold down the Shift Key to get the
>@ sign I get the " instead. Any ideas?

Gawd knows how you have done it, but you've changed your Locale.
Author
1 Mar 2007 9:37 PM
Mike Williams
"Ron" <R**@discussions.microsoft.com> wrote in message
news:44F0CE92-B39C-4A55-A326-023C0A4DC4F8@microsoft.com...

> I now have a quirky situation, my keyboard has changed
> when I hold down the Shift Key to get the @ sign I get the
> " instead. Any ideas?

You've chaned your keyboard locale. Go to Control panel and change it back.
Was it Oscar wilde who once said, "Britain and Amercia are two countries
/separated/ by a common language" ;-)

Mike
Author
1 Mar 2007 11:30 PM
Ralph
Show quote Hide quote
"Mike Williams" <m***@whiskyandCoke.com> wrote in message
news:%23gusZnEXHHA.4132@TK2MSFTNGP06.phx.gbl...
> "Ron" <R**@discussions.microsoft.com> wrote in message
> news:44F0CE92-B39C-4A55-A326-023C0A4DC4F8@microsoft.com...
>
> > I now have a quirky situation, my keyboard has changed
> > when I hold down the Shift Key to get the @ sign I get the
> > " instead. Any ideas?
>
> You've chaned your keyboard locale. Go to Control panel and change it
back.
> Was it Oscar wilde who once said, "Britain and Amercia are two countries
> /separated/ by a common language" ;-)
>
> Mike
>

George Bernard Shaw

(and it was "England and America". Either the PC of "Britain" was not in
vogue back then, or he recognized that the Welsh, Irish, and Scotts don't
speak English.)

-ralph
<g>
Author
1 Mar 2007 2:21 PM
Ralph
"Ron" <R**@discussions.microsoft.com> wrote in message
news:DCF9087F-53F2-43D2-A3A3-ACC7A6AA92D3@microsoft.com...
> Hi Ralph
> Thanks, sorry I do not think I have seen "Easter Eggs" on Windows apps,
> sounds like a good idea can you give me a sample to work from please?
>
> "Ralph" wrote:
>
> <snipped>

Here is some from the top of a quick google search...
http://www.eeggs.com/items/46999.html
http://www.pcworld.com/article/id,109378-page,1/article.html

They were quite the rage back in the Win95/98 days. Far less common now.
Microsoft banned them (mid Win2k) from their apps for a variety of reasons,
but mostly because it upset corporate users - if there is 'this' hidden
code, might there be others? &etc.

While I fully understand the reasons, I always thought they were kind of
fun. My favorite was an early Excel version that showed a "pair-of-ducks"
(paradox) getting run off by Excel.

-ralph
Author
1 Mar 2007 4:50 PM
Dave O.
> They were quite the rage back in the Win95/98 days. Far less common now.
> Microsoft banned them (mid Win2k) from their apps for a variety of
> reasons,
> but mostly because it upset corporate users - if there is 'this' hidden
> code, might there be others? &etc.
>
> While I fully understand the reasons, I always thought they were kind of
> fun. My favorite was an early Excel version that showed a "pair-of-ducks"
> (paradox) getting run off by Excel.
>
> -ralph

I rather liked the flight Sim in Excel (97 I think). I hid a blackjack game
into a asset management application I wrote (Enter "Let's play a game" into
the comment field and press Search twice)

Dave O.
Author
1 Mar 2007 5:47 PM
Stefan Berglund
On Thu, 1 Mar 2007 08:21:21 -0600, "Ralph" <nt_consultin***@yahoo.com>
wrote:
in <mbCdnQjFnr52fXvYnZ2dnUVZ_qiqn***@arkansas.net>

Show quoteHide quote
>
>"Ron" <R**@discussions.microsoft.com> wrote in message
>news:DCF9087F-53F2-43D2-A3A3-ACC7A6AA92D3@microsoft.com...
>> Hi Ralph
>> Thanks, sorry I do not think I have seen "Easter Eggs" on Windows apps,
>> sounds like a good idea can you give me a sample to work from please?
>>
>> "Ralph" wrote:
>>
>> <snipped>
>
>Here is some from the top of a quick google search...
>http://www.eeggs.com/items/46999.html
>http://www.pcworld.com/article/id,109378-page,1/article.html
>
>They were quite the rage back in the Win95/98 days. Far less common now.
>Microsoft banned them (mid Win2k) from their apps for a variety of reasons,
>but mostly because it upset corporate users - if there is 'this' hidden
>code, might there be others? &etc.
>
>While I fully understand the reasons, I always thought they were kind of
>fun. My favorite was an early Excel version that showed a "pair-of-ducks"
>(paradox) getting run off by Excel.
>
>-ralph
>

My favorite was back in the CDC days when either the 6000 or 7000 series
came with a pair of round white on green oscilloscope looking system
monitors that were powered by 12 bit minis.  Some enterprising lads with
far too much time on their hands had come up with two very good pieces
of work.  One consisted of two eyeballs (one on each screen obviously)
that followed one around the control room.  The other was a very
inviting pair of breasts.