17. March 2011




Hyperlink in RichTextBox

Today I learned that the default RichTextBox control does not handle hyperlinks out of the box. If you do want to have hyperlinks work, you need to do the following: 

  • DetectUrls property on the RichTextBox control is set to True

  • Open the Designer.cs file and find the generated code block for the RichTextBlock properties and handlers. Add the following line:
    this.myRichTextBox.LinkClicked +=
      new LinkClickedEventHandler (this.myRichTextBox_LinkClicked);
  • Add the eventhandler to the .cs file:
    private void myRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e) {
      System.Diagnostics.Process.Start(e.LinkText);
    }

That is it...


by Miguel Moreno

Category: Programming | Tags: ,

6. March 2011




nopCommerce ASP.NET ecommerce platform

While researching options for a shopping cart module for an ASP.NET application, I came across several packages. Of course, I had already gone through the list of the popular players in this market: 

And there are lilkely several more. However, most of these listed carry a hefty price tag and the ones that don't just didn't feel like the right choice for the app I am developing, based on reviews of developers who have had to work with them.

However, one package, NopCommerce, impressed me out of the box: it is an open source e-commerce solution that is based on ASP.NET 4.0 and installs using Microsoft Web Platform Installer (in my case, on Arvixe Hosting). I was able to use it right away and the list of customizable features and options is vast.

The jury is still out until I play with it some more, but from my initial research, this is the one I will be using for this project. I have also found some goodlooking templates on http://www.n-theme.com/

Read more: http://www.nopcommerce.com/


by Miguel Moreno

Category: Programming | Tools | Tags: