How to install custom controls
After creating some stuff, you’d like to use it from time to time in a different project. How to install it on VS Toolbar, add to “Add reference…” dialog and how to avoid underwater rocks – all this will be uncovered on next few pages.
Prepare assembly
When you have project with tuned custom controls and you feel fine how they works and looks like – you probably automate install actions. What you have to do to install controls:
- Add sign to assembly;
- Install assembly to GAC;
- Add to Visual Studio “Add reference…” dialog;
- Add to Visual Studio Toolbar.
I’m going to show you how to do almost all of this numbers programmatically in code snippets. Assume that control’s library called myCustomControl.dll. It’s up to you how to combine them for nice looking application. ;)
Smart tag – Single Binding
Intro
I’d like to continue describing how to create a smart tag. Previously I wrote what is smart tag and how to create it. In this post I’d like to tell how to create binding for the single field.
I assume that you have already created a custom user control, apply designer attribute and ready for to go ahead. As in the previous post I strongly advise to use ReSharper.
I’m going to show you how to create a similar functionality for your control’s smart tag as at Property view
Implementing this you can save a lot of time that was spent on browsing Property view in order to setup appearance and behavior.
ReSharper – File Navigation
In the presented video, I show how to create a file, a project's folders, extract classes to a new files. How to easy navigate through the classes and files.
ReSharper – Code Cleanup
In video I show how to setup and use Code Cleanup function to meet your code style requirements.
Smart tag – Simple
Intro
For a long time I was wandering how easy and comfortable to work with smart tags. Actually I didn’t knew how it was called officially, but anyway I thought (and still think) that this feature is awesome! Some time ago I’ve started to develop my own components and also spend more time tuning user’s interface. I found that it’s very time consuming and boring to setup necessary properties from the Property view. Its okay to setup few controls in little program, but when you have over 30 complicated views with custom components – you quickly became in a sad mood. So I decide found out how to create for my controls those pretty little triangles on the top right corner at the most standard components.
I found articles, books; I performed several tests and finally made what I want. And you know, it’s really helps me with development! Time saving in action! )
Now I’d like to share how to make it from the very beginning.
For all described actions below I used VS2008, ReSharper5
What is smart tag?
Smart tags are menu-like user interface (UI) elements that supply commonly used design-time options. Most of the standard components and controls provided with the .NET Framework contain smart tag and designer verb enhancements.
You can find three main parts in a smart tag:
- Verbs – looks like link and perform some immediate action with control;
- Fields – there are may be many different editor types as on figure. String editor, image, binding, date.
- Text – just a simple text for information or for something not editable.
Performing changes in smart tag, you change underlying control at the same time.
Hello world!
Welcome!
In this blog I'm going to write about selected application development feature on .Net. According to the plan, the first several posts will be about developing custom user's control. What issues may (and will) appear, how to avoid them, what can be do easier and so on.
So the plan of posts compiled, approved, and I hope that during New Year holidays I write the most parts of articles clear and in detail. Comments and discussions are welcome!
p.s. Blog setup in progress and there are may be some collisions.
And sorry for my english, I'll try to find someone how will read and fix articles before I post them. )

