Re: Form initial display issue
- From: "Rod" <RodEarly@xxxxxxxxx>
- Date: 18 Jul 2006 07:38:54 -0700
Martin:
I tried using the Doc property as you suggested but I still get the
same effect. My controls don't look correct until I "resize" the
window.
Thanks,
Rod
Pritcham wrote:
Hi
If, when you're designing the form, you add the BindingNavigator first,
set it's Dock property to "Top", then add your gridview, and set it's
Dock property to "Fill" it should be fine.
FYI, Anchoring is more about fixing the distance a control is from the
edges of a form/container (i.e. if you anchor a control to Top/Left
then the control should stay the same distance away from each of these
edges when you re-size the form). Docking is more geared towards how
much space (and where) the control will take up in the form/container.
(In my mind anyway)
Hope that helps
Martin
Rod wrote:
I have a form display issue that surely others have encountered and
have resolved. I couldn't find any posts about it, which I attribute
to my inability to describe it well.
I have an MDI application that opens every MDI child form maximized.
These child forms generally contain a DataGridView control with the
associated Binding Navigator at the top of the form. The navigator is
anchored Top,Left, and the DataGridView is anchored to all sides.
When the form opens, the DataGridView does not fill the entire form,
rather there is a line about 1/2 inch from the bottom of the
application window. If I resize the application window at all, the
deformity goes away and my form looks as it should.
How can I get my form to appear as it should when first displayed (with
the DataGridView filling up the whole form except for the Binding
Navigator)?
Thanks,
Rod Early
.
- Follow-Ups:
- Re: Form initial display issue
- From: Pritcham
- Re: Form initial display issue
- References:
- Re: Form initial display issue
- From: Pritcham
- Re: Form initial display issue
- Prev by Date: Regarding updating one comboBox from another: what order is best for clearing and updating the second box?
- Next by Date: Re: Form initial display issue
- Previous by thread: Re: Form initial display issue
- Next by thread: Re: Form initial display issue
- Index(es):
Relevant Pages
|