Re: Form initial display issue



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

.



Relevant Pages

  • Re: How do you use an unbound DataAdapter?
    ... You told that you have used DataAdapter (in the way as you use it a kind of ... You have used the word GridView often (a webform control) where you where ... automaticly a DataGridView and toolstrip etc. ... On the left side of the IDE is a Window, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How do you use an unbound DataAdapter?
    ... On the left side of the IDE is a Window, ... Now if you drag a table to the Windows Form you get a DataGridView control ... Or you should mean a DataAdapter that is used to ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Solution to Form initial display issue
    ... Rod wrote: ... Specify the WindowState property on the child form to be ... Anchoring is more about fixing the distance a control is from the ... These child forms generally contain a DataGridView control with the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: DataGridView: last column can be made smaller but not bigger
    ... column width change cursor. ... I have a DataGridView control where the user can resize the columns. ... edge of the window. ...
    (microsoft.public.dotnet.framework.windowsforms)