I used resizeevent and i get the new size. but the resize can be done horizontal, vertical & diagonal. Now i need to block horizontal and vertical resizing i have to permit only diagonal oru corner resize so that the aspect ratio of my window is maintained.

Waiting for suggestions.