Forum  General Visual ...  How do I...?  Docking Forms
Previous Previous
 
Next Next
New Post 11/3/2007 7:24 PM
  lenardd
93 posts
No Ranking


Docking Forms  
 Hi Guy,

I have a form set as a MDIContainer and contains a user control docked to the top of it.  Additinally, in the Form_Load event, I have the following:

Form

When I run the project, "fx" form does not fill completely. There is a large amount of space all around the "docked fx" form.  Shouldn't it behave the same way as docking user control? 

(Incase you are wondering, a different approach I could take above is to just use visual inheritence. Unfortunately VWG's performance is not good when switching between forms that way. VWG seems A LOT snappier when swapping in user controls......but I don't want to design all my forms on user controls.)

BTW, I noticed when setting the MDIContainer form's background color, it doesn't work. Shouldn't it?

Thanks.

--Lenard

 

 fx = new TestForm();
fx.MdiParent = this;
fx.FormBorderStyle = FormBorderStyle.None;
fx.Dock = DockStyle.Fill;
fx.Show();
 
New Post 11/4/2007 7:47 AM
  lenardd
93 posts
No Ranking


Re: Docking Forms  
 

Hi Guy,

Sorry for the repost.  DNN's editor messed up the formatting of my post.  Anyways...

I have a form set as a MDIContainer and contains a user control docked to the top of it. Additinally, in the Form_Load event, I have the following:

Form fx = new TestForm();
fx.MdiParent = this;
fx.FormBorderStyle = FormBorderStyle.None;
fx.Dock = DockStyle.Fill;
fx.Show();

When I run the project, "fx" form does not fill completely. There is a large amount of space all around the "docked fx" form. Shouldn't it behave the same way as docking user control?

(Incase you are wondering, a different approach I could take above is to just use visual inheritence. Unfortunately VWG's performance is not good when switching between forms that way. VWG seems A LOT snappier when swapping in user controls......but I don't want to design all my forms on user controls.)

BTW, I noticed when setting the MDIContainer form's background color, it doesn't work. Shouldn't it?
Thanks.

--Lenard

 
New Post 11/5/2007 12:15 AM
  tamir.zaslavsky
57 posts
No Ranking


Re: Docking Forms  
Modified By tamir.zaslavsky  on 11/5/2007 4:17:19 AM)

Hi lenard,
I managed to reprduce this bug just like you said. I added it to our issure tracker (VWG-1022).

About the back color, winforms has the same behavior.

10x
Tamir

 
New Post 11/5/2007 7:00 AM
  lenardd
93 posts
No Ranking


Re: Docking Forms  
Hi Tamir,

You should also note in the ticket that depending on fx's original size, IE's (vertical) scroll bars become enabled. This shouldn't be happening when docking. It should behave just like a user control.

Thanks.

--Lenard
 
New Post 11/15/2007 10:47 AM
  lenardd
93 posts
No Ranking


Re: Docking Forms  
Tamir,

Would it be possible to get this fixed in 5.83? I'm kind of stuck until this is addressed.

Thanks.

--Lenard
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Docking Forms
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS