FormBorderStyle Question?

D

Debbie Carter

I have a ShowDialog in the Sub New of my Main form. I want the dialog to
show before the main form finishes loading. On my Windows 98 test machines
when the dialog shows it is maximized when I have the FormBorderStyle set to
normal. Is there any way around this besides setting the FormBorderStyle to
None? The ShowDialog always comes out the right size and centered on the
screen in the later operating systems like XP. I would like to have the
border and the title bar show on Window 98 systems but I don't know how to
get around this. Any help would be appreciated.
 
G

Guest

Is this a splash screen?

There are a few ways:

1) Call the form from Sub Main in a module, which will be your startup

2) Set the MaximumSize property of the form

3) Use a FixedSingle FormBorderStyle

I hope these Ideas help
 
D

Debbie Carter

Crouchie1998...thank you. The MaximumSize worked fine. When I did that the
CenterScreen stopped working but I just centered it inside of the program
and then it worked. Once again...thanks for your help.

Debbie
 

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