form designer

  • Thread starter Arkadiusz Smolak
  • Start date
A

Arkadiusz Smolak

Hi,

I need a help. I have form inherited from other form. The base form
implementation is placed in other assembly. I try to open my inherited form
in designer but visual studio throws an exception. My question is: "how can
I debug visual studio form designer?" As I remember in Visual 6.0 it was
possible by running two visual session and attaching first one to the
second. Unfortunately in VS .NET 2005 it seems that it doesn't work.
What is the solution?

Thanks.

Jurek
 
K

Kevin Spencer

Assuming that your other form is in a project, don't reference the assembly;
include the project in the solution that uses it. You can include the same
project in many solutions.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

If the Truth hurts, wear it.
 
B

Bruce Wood

Hi,

I need a help. I have form inherited from other form. The base form
implementation is placed in other assembly. I try to open my inherited form
in designer but visual studio throws an exception. My question is: "how can
I debug visual studio form designer?" As I remember in Visual 6.0 it was
possible by running two visual session and attaching first one to the
second. Unfortunately in VS .NET 2005 it seems that it doesn't work.
What is the solution?

Is this the sort of information you're looking for:
http://msdn2.microsoft.com/en-us/library/5ytx0z24.aspx
 
A

Arkadiusz Smolak

Thank you for the answer. I saw this article earlier and it's about debuging
Custom Windows Forms Controls at Design Time. Unfortunetely I don't know how
to aply it to debugging form. It seems that framework doesn't call my form
constructor when I open it in designer.

Arek
 
B

Bruce Wood

No... the Designer calls the constructor of your form's _base class_
when you open it in the Designer. If you want to debug your form's
constructor as it applies at design time, you have to open a form
_derived_ from your form. Then the Designer will run your form's
constuctor.
 

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