Windows Develop Bookmark and Share   
 index > Windows Forms Designer > DesignSurface Problem
 

DesignSurface Problem

Hi,

I have a Form Editor (default features ). IfI open 2 forms( one DesignSurface for each)for edition and"dispose" one anymore I can "resize" any control on other. If I open other form, the first go back to work.

How to solve this problem ? It is very easy to reproduce.

I'm using .NET 3.5.

Regard,
Alexnaldo Santos
Alexnaldo Santos  Saturday, April 11, 2009 1:38 PM
Please, Can anyone help me with this issue ?

Here is a simple application to reproduce the issue: http://www.automato.org/download/WinFormDesigner.zip


Thanks,
Alexnaldo Santos
Alexnaldo Santos  Tuesday, April 14, 2009 10:24 PM
Hi Alexnaldo,

I tested your code into VS2008/VS2005 environment, and yes this occurs...

I found an solution , it's not elegant but can help to find the formal solution!

private void button2_Click(object sender, EventArgs e)
{
Form frm = forms[0];
frm.Close();
frm.Dispose();
forms.Remove(frm);

((Form2)forms[0]).Initialize(); //<-- trick
}

running perfectly!

I hope help you!

I need an example for serialize/deseriable to XML from an custom formdesigner, can you send me an tiny sample how to do it ?

Thanks Alexnaldo!
Jorge

PD: I think that Internals Services of DesignSurface requires an refresh ...
jmptrader  Wednesday, April 15, 2009 3:59 PM
In the example, "Initialize()" create the Designer and I can't do it for every closed (previous) designer.


I would like to know why if I open a new "Form Editor" the previous go back to accept "resize".


MS Team, please, help me with this problem.



Regards,
Alexnaldo Santos
Alexnaldo Santos  Thursday, April 16, 2009 10:43 AM
Hi,

Can any MS Team help me with this issue ?


Regards,
Alexnaldo Santos
Alexnaldo Santos  Thursday, April 23, 2009 1:03 PM

You can use google to search for other answers

Custom Search

More Threads

• Visual studio resizes forms
• Chnage Cursor to some animated image in windows application
• How to change the shape of BUTTON control
• create property on a form that is type: structure
• Masked TextBox formatting question
• Mouse monitoring.(monitoring key Clicks)
• Error in form designer but ok at runtime
• User control doesnt appear in the win app
• Copy/Paste puts control on wrong DesignSurface
• Problem with solution folders and custom controls