Form Resizing

Y

Yogesh S

i donno whether this is by design but i have a repainting
problem.. i have placed magic docking controls inside the
form..but somehow it is not painting properly.. but when
i resize the form it paints itself properly..

so what i am doing is resizing the form

this.Size = new Size (this.Size.Width-1,this.Size.Height-
1)

but when the form state is maximized this code has no
effect..

i also override the WndProc Method to check whether
WM_Size message is processed or not.. but when window
state is maximized no matter what size u assign to this
message is never being processed...

hope if i pass a sendmessage that should do the trick...


regards
yogesh s
 
Y

Yogesh S

it seems to be by design just did a ildasm of
system.windows.forms. and the final method SetBoundsCore
is called internally and it has check if the state is
maximized then don't call the SetWindowPos API...

will be curious to know why ?

regards
yogesh s
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top