VB.net: Highlighting a search term in a DataGridView

I’m building a search form into an application that has a database back end. I managed to configure a nice little search which takes some user input, and then modifies the results shown in a DataGridView control. However, not being satisfied with just showing a subset of results, I wanted to be able to highlight
Continue reading VB.net: Highlighting a search term in a DataGridView

Converting RTF-HTML – Not possible in a thread?

Been working on an application that needed to convert some RTF to HTML. Initially I thought this would be a reasonably simple requirement, and hoped that .Net might even include such a function to do this. Alas, I was being too optimistic. So, trusting Google, ended up on this post from Matthew Manela – http://code.msdn.microsoft.com/Converting-between-RTF-and-aaa02a6e
Continue reading Converting RTF-HTML – Not possible in a thread?

Using Enum with ComboBox and setting Combobox value – VB.net

This is my take on setting a combobox to use an enum which has both a description and key value set. It also shows how this works when trying to assign a value to the combobox. Enum MyLogEnum Error = 1 Warning = 2 Information = 3 End Enum ComboBox_LogLevel.DataSource = System.Enum.GetValues(GetType(MyLogEnum)) And to assign
Continue reading Using Enum with ComboBox and setting Combobox value – VB.net