WinForms question - probably an easy one

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
 
B

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.
 

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