Link to home
Create AccountLog in
Avatar of peruzzi
peruzzi

asked on

How can I make my form streach over all the screen?

Hi guys....
How can I make my form streach over all the screen?
also over taskbar like games .

thanks
ASKER CERTIFIED SOLUTION
Avatar of shaneholmes
shaneholmes

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
form1.height := screen.height;
form1.width := screen.width;
Avatar of shaneholmes
shaneholmes

peruzzi,

I would recommend you Ā place a temporary button on the form with

Close;

in the OnClick event,

then you can remove he button when your done developing your application
or when you have added an alternative method of exiting the application.

Shane
peruzzi
1. If You hide the taskbar like Shane advice there will be no taskbar when You switch from your application to another using Alt+Tab.
2. It is also possible to close your application by Alt+F4
WHen you clsoe the form, you get the task bar back, see my code above

What are you trying to do here mokule?

Shane
I didn't talk about closing application, but switching to another.
Am I not right?
Excuse me Shane but I don't understand Your question.
Well, if i understand you correctly, you say that with my solution, you can't Alt-Tab to other apps! - and I say you can!

Shane
No You don't understand me.
I've just said that WHEN You switch the task bar is hidden. Nothing more.
Right, thats correct.....

Shane
Very easy. You don't need to do all this other fancy stuff just set the properties of the form:

- Windowstate - wsmaximised
- BorderStyle - bsnone

And if you want to have it ontop of all programs set

-FormStyle - Fsstayontop

. To bring the program to the top call

formx.bringtofront

Regards,

Hypoviax
Whats makes yours more simple then mokule's

form1.height := screen.height;
form1.width := screen.width;

Shane
Avatar of peruzzi

ASKER

Hi Guys
thanks for you

peruzzi