Rotsey wrote:
I have not had a good answer to this question.
I put a menustrip on a form and so it is a main menu in affect.
Now I put a webbrowser control on the form and set it dock fill.
Of course what happens is the menu covers the top of the webbrowser control
which i do not want.
For what it's worth, the reason I didn't answer your previous post was
that the problem seemed odd to me. That is, I haven't had any trouble
having dock-filled controls overlapping the menu strip. But I didn't
have time to verify it at the time.
Since then I have had time, and I can confirm that I don't have any
trouble doing what you want to do. I drop a menu on the form, then a
control, set the control's Dock property to Fill, and it winds up flush
against the menu strip, not overlapped.
I'm using VS 2005 and .NET 2.0.
Perhaps you could post a concise-but-complete example of code that
demonstrates a form that contains a docked menu strip and a docked
control, where the control winds up overlapped with the menu strip. It
should just work, but if it doesn't for you then if you can post code
that demonstrates the problem then someone can look at it and try to
understand what's different about the code you wind up with as compared
to what the rest of us have.
It may be sufficient to just post the InitializeCompo nent() method for
your form, actually...so if you don't want to post the rest of the class
right off the bat, just post that method so we can look at it.
Pete