how create designer in Visual Studio 2010? [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I created an item template that generates a .CS file and adds it to the project. I want to create a DESIGNER that is shown everytime the user tries to open this .CS file from the Solution Explorer, just like XX.EDMX and XX.Dsigner.cs
?
Any ideas?
Thanks!!

The short answer is given in the VSSDK reference (on MSDN) page on Designer Initialization and Metadata Configuration page (all keywords are linked on the page itself):
A VSPackage should handle designer initialization by:
Creating an object implementing the DesignSurfaceExtension class.
Register the class implementing DesignSurfaceExtension as providing support for the VSPackage's designer extensions by applying instances of DesignSurfaceExtensionAttribute, ProvideObjectAttribute and ProvideServiceAttribute to the class providing the VSPackage's implementation of Package.
Unfortunately the long answer is going to be extremely long, and in the absence of genuinely good documentation, involve a lot of trial and error. A quick search didn't show any complete examples, so if you're willing/able to, it'd be great if you could share what you figure out.

Related

Using a DLL library in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a DLL library given to me as homework. I was being told the DLL has the capability of raising events. And I will need to be able to handle those events. I am coding in C#.
Can any one please point me to any tutorials online that will serve the purpose.
Atm, all the google results I get is - how to make a DLL or how to use C++ dll in C#; they are not helping me to serve the purpose.
Can anyone help?
Yes, I know how to add a reference and can connect this to my project.
Since you know how to add a reference, all you need is to add the reference to your class with "using [Class Namespace]" and add an event to your event handler.
This link may help you with this part: http://msdn.microsoft.com/en-us/library/ms743596(v=vs.100).aspx
Add a reference to the project by right-click on the reference-folder in your project. Navigate to the dll and add it. Now you can use it like a project which is in your solution.

graphical representation of source code [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have some source code in C# that lies in a number of folders.
I need to understand this code as it wasn't written by me. Not only that, I want to learn how enterprise applications are coded. The best way to do that is if I have a graphical representation of classes, inheritance etc. I should be able to see the source code in multiple layers: e.g how classes relate to each other, how properties/methods in these classes relate and call each other, etc. I've heard of enterprise architecture and checked it out, but I don't understand what I've read.
Can anyone suggest something else?
Have you looked at NDepend? It can show you all the dependencies withing the code - eg through graphs;
http://www.ndepend.com
Simply use Microsoft Debug Canvas to get acquainted with the solution.
If you are using Visual Studio right click on project and choose "View Class Diagram".

UI interface Builder c# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
i want the ability to create a UI designer (Winforms/WPF/UI/User interface type agnostic).
The requirment is that it should be possible to add properties to a device and it should automatically turn up in the UI.The addition of properties would be via a admin screen.
eg. there is a UI object called Order.It should be possible to add a property called ordersoomething to the order object from the admin screen and it should automatically reflect in the User interface.
i am looking for something that is already available (Open Source/existing stuff etc).
Edit based on a couple if comments.
What i mean by UI agnostic is that i am looking for a architectural pattern. That would fit well.it should not matter if it is Webforms or Silverlight or Winforms.
Regards
David Xavier
Since you tagged this C#, make sure you know about VS LightSwitch
There is a DevExpress Application Frameowrk, something called XAF, see the Developer Express website, it's not for free but not too expensive considering what you are asking, I am not sure if it only targets WindowForms...

iTemplate what is it and place where i can get GOOD example in c# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
HI ,
I am currently trying to learn more about custom controls and how to use them etc. i have come across iTemplate interface and was hoping that someone could better explain its use and point me toward a good example implementation. From what i have found it allows you to change how an asp.net control will display items. ive tried searching code project etc for a good example but none explain it well. Id ideally like a very basic example and a more complex one.
thanks
Niall
ITemplate: Defines the behavior for populating a templated ASP.NET server control with child controls. The child controls represent the inline templates defined on the page. (taken from MSDN).
Take a look at these great tutorials: Developing Custom ASP.NET Server Controls or Templated Server Control Example.

What's the reason the static analysis wasn't made available to VS 2010 Pro? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Is it so that the regular developers focus on writing their Contracts locally and then submit them to be analysed globally?
Or is there a way to get something comparable to this experience? Maybe as a separate download?
Also if a library have Contracts, then would the intellisense tooltips would include the Contracts no matter what version of VS is used?
I believe it was forked off into a seperate project (on Devlabs) instead of a built-in / pre-packaged feature of Visual Studio.
Why did they make this change? That's a question for the developers I think. I guess they wanted to expose the concept separately, maybe allowing it to be used not just within studio.
Also, from my understanding of the package you'll download; you wont see any change in behavior with IntelliSense, It should integrate fully with visual studio's feature-set.
How-to: Install Code Contracts on Visual Studio 2010
Code Contracts Project Page (Devlabs)

Categories