WinForms question - probably an easy one

  • Thread starter Thread starter Bernd
  • Start date Start date
B

Bernd

Hi,

i have a little problem which is bugging me since a few days.
I am using various Forms in my application and now i came to a realy
strange situation.
The main app is a Form, when a certain userinteraction occours i open
another Form. I will call it the second Form from now on.

I have added a panel with DockStyle = Fill to the second form. Later i
draw an image to this panel (works fine).

The strange thing is, the panel does not "Fill" the Form
(DockStyle.Fill) it just stays there in the size i specify for it and
does not "max-out" to the size of the Form that holds the panel.

This only happens when i open the second form through another form (here
it is my mainform)

any help is much appreciated !

-bernd
 
Bernd said:
Hi,

i have a little problem which is bugging me since a few days.
I am using various Forms in my application and now i came to a realy
strange situation.
The main app is a Form, when a certain userinteraction occours i open
another Form. I will call it the second Form from now on.

I have added a panel with DockStyle = Fill to the second form. Later i
draw an image to this panel (works fine).

The strange thing is, the panel does not "Fill" the Form
(DockStyle.Fill) it just stays there in the size i specify for it and
does not "max-out" to the size of the Form that holds the panel.

This only happens when i open the second form through another form (here
it is my mainform)

any help is much appreciated !

-bernd

- problem solved.
 
Back
Top