Randomly Move Command Button

  • Thread starter Thread starter Suthee
  • Start date Start date
S

Suthee

Hi All--

I wanted to play a little joke on my boss with a dB I made. I saw an app
once where when you went to click the command button it randomly moved so
you couldn't click it; pretty clever. I have a rough idea of how to do it,
but I don't know VB quite well enough to get it to work right?

Does anyone know how to do this? The key is to move it around the form
without having it leave the form.

Also if anyone knows--I created report formatted in landscape, but when
some users open it, the report opens in portrait even though I created it
and saved it in landscape. Strange. Perhaps attach some VB to the command
button to force it to landscape?

THANKS!!

Doug Powers
 
Set the Left and Top properties of the command button.
The MouseMove event fires when the mouse is over the button.
Stay within the Width of the form and the Height of the Detail(?) section.
Measurements will be in twips, where 1440 twips = 1 inch.

For your other issue, Name AutoCorrect can cause this and many other
problems. More info:
Failures caused by Name Auto-Correct
at:
http://allenbrowne.com/bug-03.html
 
Back
Top