all groups > dotnet windows forms designtime > october 2005 >
You're in the

dotnet windows forms designtime

group:

PRB: .NET Beta2 : Cannot move ContainerControls on designer surface


PRB: .NET Beta2 : Cannot move ContainerControls on designer surface Stuart Carnie
10/18/2005 4:42:13 PM
dotnet windows forms designtime:
I have a working example of a designer host from available working examples
:

http://www.divil.co.uk/net/articles/designers/hosting.asp

and

http://msdn.microsoft.com/msdnmag/issues/04/12/CustomFormsDesigner/default.aspx

I'd recommend the first link, as it's there appear to be more issues with
the MSDN article example code in v2.0. The problem is in Beta 2 when
dropping container controls on the designer surface, like a GroupBox or
Panel, these control cannot be moved, as the adornment (the new feature of
Whidbey) is not responding. A Button or Label can be moved just fine.

I even added the following lines

0001: BehaviorService test =
serviceContainer.GetService(typeof(BehaviorService)) as BehaviorService;
0002: test.BeginDrag += new BehaviorDragDropEventHandler(test_BeginDrag);

after

0001: rootDesigner = (IRootDesigner)host.GetDesigner(form);
0002: view = (Control)rootDesigner.GetView(ViewTechnology.Default);
0003: view.Dock = DockStyle.Fill;
0004: splitContainer1.Panel1.Controls.Add(view);

and receive the Begin Drag events for non-container controls such as Button
and Label, however nothing for the GroupBox or Panel controls.

Any assistance would be appreciated.

Cheers,

Stuart

RE: PRB: .NET Beta2 : Cannot move ContainerControls on designer surface v-jetan NO[at]SPAM online.microsoft.com (
10/19/2005 12:00:00 AM
Hi Stuart,

Thanks for your post.

Yes, I have downloaded the sample project in the first link. I can
reproduce your problem on Whidbey beta2, on the form designer, the
ContainerControl can not be moved.

I am not sure of the root cause for this problem. However I have tested
this issue on the Whidbey release candidate version, the containercontrols
can be moved without any problem. It seems that this problem has been fixed
in Whidbey RC version, so it will be fixed in the release version.

MSDN Subscribers can now download the release candidate of Visual Studio
2005 and Beta 3 of Visual Studio 2005 Team Foundation Server. You can get
it from the link below:
http://lab.msdn.microsoft.com/vs2005/get/default.aspx

Hope this information helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Re: PRB: .NET Beta2 : Cannot move ContainerControls on designer surface Stuart Carnie
10/19/2005 9:20:04 AM
Yes it does help, excellent news. I look forward to RTM.

Thanks for the quick response.

Cheers,

Stuart

[quoted text, click to view]

Re: PRB: .NET Beta2 : Cannot move ContainerControls on designer surface v-jetan NO[at]SPAM online.microsoft.com (
10/20/2005 3:12:03 AM
You are welcome

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button