Change Cursor when leaving a Form

After opening a Second Form as a Dialog Box, which is smaller then the Main Form, How do I change the cursor so that when it is over the Dialog Box, it shows as an arrow - and when it has left the Dialog Box, it changes to an Hour glass.

That is the cursor is an hour glass when not over the Dialog Box ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you can do this:

procedure TForm1.Button1Click(Sender: TObject);
 crHourGlass   = TCursor(-11);
 //you may need to change this const until you find the hourglass
 //seems to depend on how many cursors you have installed
 //mine is 11 but on another pc it was 18
form2.cursor := crhourglass;;

you can also call
     SetSystemCursor(Screen.Cursors[crHourGlass], OCR_NORMAL);

     SetSystemCursor(Screen.Cursors[crDefault], OCR_NORMAL);

to change the cursors systemwide.
Regards Barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chrisedenAuthor Commented:
Even though it reverses what I actual wanted, it has answered another problem, which I had been looking into for a long time.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.