Telerik blogs

Latest

  • Productivity

    Wrapping a .NET user control as an ActiveX

    Before even asking why one should do anything like this, let me clarify that this is a good technique to spice up a bit your VB6 application. Now I know this is not cutting edge but still it is important to a lot of people (as I found out already). So let’s start then... Create a new solution that includes a Windows Forms application (to test easily the functionality provided by the user control). Then add a library project that will wrap our user control. What is demonstrated by this example is a very simple example that includes a label, and a...
    September 17, 2008 4 min read
  • Productivity

    Visual Studio Tooltips unplugged: How to use multiple monitors with Visual Studio efficiently

    It is no urban legend that having more monitors results in greater productivity, and most of all tremendous increase in developer’s comfort. Even the Myth Busters (http://en.wikipedia.org/wiki/MythBusters) dudes know that. So imagine that your group’s budget allows installing a brand new (say 22 inches) TFT display as your second, or even better you already have the setup. What are your options with VS 2005/2008 for efficient management of the screen estate to bust productivity? Better code access You can vertically split the Visual Studio screen estate in two, and position the divider down the center of the two monitors. This can be done...
    September 16, 2008 1 min read
  • Productivity

    Showing "tooltips" for list items in RadComboBox

    There are two ways of doing this: The first approach is to assign directly the text to be displayed to every ComboBoxItem. This is done through the API or through the design time. You must assign the required text to every item’s ToolTipText.     The second approach is to handle the ToolTipTextNeeded event where custom logic can be applied: private voidTestComboBox1_Load(objectsender, EventArgs e) {     ComboPopupForm parent = this.radComboBox1.ComboBoxElement.ListBoxElement.ElementTree.Control asComboPopupForm;     if(parent != null)     {         parent.ToolTipTextNeeded += newTelerik.WinControls.ToolTipTextNeededEventHandler(radComboBox1_ToolTipTextNeeded);     } } Add...
    September 15, 2008 1 min read
  • Productivity

    Visual Studio Tooltips unplugged: Drag and Drop code artifacts to Toolbox General Tab.

    I bet you never thought about this feature! Me either… It’s good that there is a marvelous blog about all goodies in VS maintained by a nice lady. I will be monitoring and making comments on the topics there that have excited me most. So what is on today’s menu? As you’ve probably figured it out already, I will comment on a fine (but unknown to me) feature of dragging and pasting code artifacts straight to the VS toolbox. At first I was a little bit skeptic, but it really worked out, let me show you how: 1. Mark a code segment...
    September 12, 2008 1 min read
  • Productivity

    Visual Studio Tip: Creating Your Own Code Snippets

    I recently blogged about using code snippets as a shortcut to writing more code in less time. In this post, I'm going to walk you through the steps to create custom snippets that you can install into Visual Studio for use in your own projects To get started, let's take a look at the anatomy of a snippet. A snippet is nothing more than an XML file, with a .snippet extension, containing configuration settings. If you open up the file foreach.snippet (located in "<Visual Studio installation directory>\VC#\Snippets\1033\Visual C#") you'll find the following XML, which defines the foreach snippet: As you can see, the XML used to...
    September 12, 2008 8 min read