Click here to Skip to main content
13,044,428 members (113,493 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have an application and when I press "Windows button + arrow up" it jumps to the top left corner and resizes to maximum. This is standart feature of this keyboard shortcut but the problem is that after this I can only resize it, not move it. Where can be the problem? or maybe even better how do I completely disable "Windows button + arrow up" keyboard shortcut?
Posted 18-Sep-12 4:34am
Kschuler 18-Sep-12 10:51am
What code are you using to accomplish this?
Member 8266594 18-Sep-12 11:10am
Well actually no code. I guess it is a build in feature of windows 7 and I am trying to get rid of it.
Kschuler 18-Sep-12 11:12am
Ah. I see. I am still on Windows XP, so when I tried the windows + arrow up and it didn't work, I assumed it was a feature you were making not one built into the OS.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

In Windows 7 this is standard behavior. The Windows->Arrow Up command maximizes the window. Maximized windows cannot be moved unless they are resized first. There is no problem here.
Member 8266594 18-Sep-12 11:57am
And can it be somehow disabled in Winforms app? It is a demand on my app from my superior.
Marcus Kramer 18-Sep-12 12:02pm
There appears to be some confusion here. In your comment to Kschuler above you say "no code", but now your are talking about how to disable it in a WinForms app. Is this an existing application, or one that you have the source to?
Member 8266594 18-Sep-12 12:28pm
How to make it clear? obviously I have no code for this because it is a build in windows feature...for Windows 7 if you press "Windows button + arrow up", the active window changes its position to [0;0] and resizes to fullscreen (or its maximum size) and I want to somehow "kill" this behaviour so that nothings happens if I press this keyboard combination
Hopefully I made myself clear
Marcus Kramer 18-Sep-12 13:47pm
Are you trying to accomplish this in an application you are writing or across the entire system?
Member 8266594 18-Sep-12 14:50pm
only in the application I am creating
Member 8266594 21-Sep-12 6:10am
any suggestions then?
Marcus Kramer 21-Sep-12 9:55am
I would highly suggest against overriding default Windows behavior, but if you absolutely need to you can use the PreviewKeyDown event to capture the keystrokes and deal with them yourself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100