I want to make all applications stay away from the right edge of my screen by about 100 pixals. Is there a way to do this via API?
When I say stay away is that when they are maximized, the width is set to 100 pixals less than my screen size.
Printable View
I want to make all applications stay away from the right edge of my screen by about 100 pixals. Is there a way to do this via API?
When I say stay away is that when they are maximized, the width is set to 100 pixals less than my screen size.
check out the SetParametersInfo with the SPI_SETWORKAREA constant.
why do you want to do this anyway? if you're looking to create a 'side bar' style app then there are different ways.
What other ways are there to do it. I made a form that sits on the side of my screen to open other forms. It's just seveal buttons.
you'll probably want to register you program as an AppBar (then it'll resize the desktop work area and you can have it autohide if you want and stuff like that). To do that you'll need the SHAppBarMessage API.
I'm afraid I don't know of any .Net examples, but if you search I'm sure you'll find some :)
edit: or maybe .Net has it built in - i dunno