Cor, I ask this question again because even though I did find out how to
resolve the problem no one gave me a reason why. Here's how to reproduce it:
Create a new Windows Form Project (Form1)
Size the Form at least 400 x 400
Add a Button (Button1) to Form1
Add a new form to the project (Form2)
Set Form2 Properties in the Design Property Window to:
BorderStyle = FixedDialog
ControlBox = False
StartPosition = Manual
Add a Button (Button1) to Form2 so it's bottom is at the bottom of the Form2
In the Button1 on Form1, add the following code in the button click event:
Dim f as new Form2
f.Left = 100
f.Right = 200
f.ShowDialog
Run the program and click on Button1 on Form1
You will see most of the Button1 on Form2 is cut off and not showing!
However, if you set the ControlBox Property to True in the Design Properties
Window, then add code in Button1 of Form1;
Dim f as new Form2
f.ControlBox = False
f.Left = 100
f.Right = 200
f.ShowDialog
Run the program again and you will see that all of Form2 is showing ok.
"Cor Ligthert" wrote:
Dennis,
I thought that I made some code to try what you told and had not that
behaviour.
Can you make now a simple sample to show where/how it is happening and let
us try that.
In the way you are asking this now to us, gives only for us to endless
work.
Just my thought,
Cor