Form size changes in runtime vs design time modes 
Author Message
 Form size changes in runtime vs design time modes

I recently upgraded an application from VB 6 to VB.Net.  
Everything seems to be fine except this annoying problem.  
All the child forms (its an MDI application) have their
size changed when in runtime mode.  It seems that they are
all being resized to the same size.  Any help with this
situation is appreciated.


Wed, 23 Feb 2005 19:25:08 GMT  
 Form size changes in runtime vs design time modes
Hi,

I was not able to reproduce the problem. Try isolating the problem by:

1. Create a new project and import each of the following from the
problematic and check which of them is causing the problem.  

- a child form
- the MDI container form

2. If none of the above is causing the problem, try creating a new project
and imports all the forms into the new project to see if this is caused by
project settings.

HTH.

Regards,
Yan Liu
This posting is provided "AS IS" with no warranties, and confers no rights.



Fri, 25 Feb 2005 10:36:13 GMT  
 Form size changes in runtime vs design time modes
I to have had the same problem and have tried to follow those steps to fix
it... no luck


Quote:
> Hi,

> I was not able to reproduce the problem. Try isolating the problem by:

> 1. Create a new project and import each of the following from the
> problematic and check which of them is causing the problem.

> - a child form
> - the MDI container form

> 2. If none of the above is causing the problem, try creating a new project
> and imports all the forms into the new project to see if this is caused by
> project settings.

> HTH.

> Regards,
> Yan Liu
> This posting is provided "AS IS" with no warranties, and confers no
rights.



Sat, 26 Feb 2005 10:23:30 GMT  
 Form size changes in runtime vs design time modes
I would like to look into this issue, can you help me recreate the problem
on my side? Anything that I should pay special attention to?

Regards,
Yan Liu
This posting is provided "AS IS" with no warranties, and confers no rights.



Sat, 26 Feb 2005 15:13:48 GMT  
 Form size changes in runtime vs design time modes
Yan-

It just happened when i converted my VB6 MDI application
to .Net using the wizard.  I can send you a small
application if you want to see it.  

Thanks.

Kevin Richardson

Quote:
>-----Original Message-----
>I would like to look into this issue, can you help me

recreate the problem
Quote:
>on my side? Anything that I should pay special attention
to?

>Regards,
>Yan Liu
>This posting is provided "AS IS" with no warranties, and
confers no rights.

>.



Sun, 06 Mar 2005 12:01:22 GMT  
 Form size changes in runtime vs design time modes
Hi Kevin,

Sorry for my late response.

The problem is caused by the following statement:

Me.StartPosition =
System.Windows.Forms.FormStartPosition.WindowsDefaultBounds

According to MSDN:
===
WindowsDefaultBounds - The form is positioned at the Windows default
location and has the bounds determined by Windows default.

So you are seeing by-design behavior. To fix the problem, you can change it
according to the options available to you:

CenterParent - The form is centered within the bounds of its parent form.
CenterScreen - The form is centered on the current display, and has the
dimensions specified in the form's size.
Manual - The location and size of the form will determine its starting
position.
WindowsDefaultBounds - The form is positioned at the Windows default
location and has the bounds determined by Windows default.
WindowsDefaultLocation - The form is positioned at the Windows default
location and has the dimensions specified in the form's size.

I think both Manual and WindowsDefaultLocation will work for you.

HTH.

Regards,
Yan Liu
This posting is provided "AS IS" with no warranties, and confers no rights.



Mon, 07 Mar 2005 11:25:52 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Best Way to Detect Design-Time vs RunTime Mode of an Applicatin

2. Browser Control: Design Mode vs Compiled Mode

3. Please Help......Design mode Vs. Run mode detection

4. Browser Control: Design Mode vs Compiled Mode

5. change from running mode to design mode

6. IDE Mode vs Runtime Mode

7. Changing design time properties at runtime

8. Max FORM size during design time?

9. Determining Run-Time/Design-Time mode

10. how do draw vb6 type graphics on a form (design time not runtime)

11. bug: design-time IsMdiContainer change in form confuses user controls

12. web service and updating web reference with vb.net design time vs run time

 

 
Powered by phpBB® Forum Software